-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Make models Sendable #1771
Conversation
...gen/protocol-test-codegen-local/Tests/swift-codegen/Tests/WaitersTests/WaiterTestUtils.swift
Outdated
Show resolved
Hide resolved
@@ -15,22 +15,21 @@ class S3ExpiresTest { | |||
val context = setupTests("s3-expires.smithy", "com.amazonaws.s3#S3", "S3") | |||
val contents = TestUtils.getFileContents(context.manifest, "Sources/Example/models/FooOutput.swift") | |||
contents.shouldSyntacticSanityCheck() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests fixed below, which were affected by the changes made in smithy-swift.
// Use of fully-qualified type names in this extension suppresses the Swift 6 | ||
// "retroactive conformance" warning in a manner compatible with Swift 5. | ||
// See: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0364-retroactive-conformance-warning.md#source-compatibility | ||
extension SmithyWaitersAPI.WaiterConfiguration.Acceptor.Match: Swift.Equatable where Input: Swift.Equatable, Output: Swift.Equatable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using fully-qualified names in an extension declaration suppresses "retroactive conformance" warnings while still being compatible with Swift 5.x (using @retroactive
in Swift 5 results in a compile error.)
…s/aws-sdk-swift into jbe/sendable_document_and_streams
Issue #
#1768
Description of changes
smithy-lang/smithy-swift#829 makes generated models
Sendable
.This PR fixes some affected codegen tests and a couple of Swift 6 compile warnings.
New/existing dependencies impact assessment, if applicable
No new dependencies were added to this change.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.