Skip to content

Commit

Permalink
chore: Make modeled errors Sendable (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins authored Dec 18, 2024
1 parent b4a7d85 commit 90edaab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ extension ComplexError {
val contents = TestUtils.getFileContents(context.manifest, "Sources/Example/models/ComplexError.swift")
contents.shouldSyntacticSanityCheck()
val expectedContents = """
public struct ComplexError: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error {
public struct ComplexError: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error, Swift.Sendable {
public struct Properties {
public struct Properties: Swift.Sendable {
public internal(set) var nested: EC2ProtocolClientTypes.ComplexNestedErrorData? = nil
public internal(set) var topLevel: Swift.String? = nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ extension ComplexXMLError {
val contents = getFileContents(context.manifest, "/Sources/Example/models/ComplexXMLError.swift")
contents.shouldSyntacticSanityCheck()
val expectedContents = """
public struct ComplexXMLError: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error {
public struct ComplexXMLError: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error, Swift.Sendable {
public struct Properties {
public struct Properties: Swift.Sendable {
public internal(set) var header: Swift.String? = nil
public internal(set) var nested: RestXmlerrorsClientTypes.ComplexXMLNestedErrorData? = nil
public internal(set) var topLevel: Swift.String? = nil
Expand Down

0 comments on commit 90edaab

Please sign in to comment.