-
Notifications
You must be signed in to change notification settings - Fork 31
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
chore: Update to Smithy 1.49.0 #733
Conversation
@@ -285,7 +285,7 @@ fun Parameter.toSymbol(): Symbol { | |||
val swiftType = when (type) { | |||
ParameterType.STRING -> SwiftTypes.String | |||
ParameterType.BOOLEAN -> SwiftTypes.Bool | |||
else -> throw CodegenException("Unsupported parameter type: $type") | |||
ParameterType.STRING_ARRAY -> SwiftTypes.StringArray |
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.
Add STRING_ARRAY
case and eliminate the else
so this fails to compile when a new ParameterType
is added in the future.
@@ -86,7 +86,7 @@ fun Parameter.toSymbol(): Symbol { | |||
val swiftType = when (type) { | |||
ParameterType.STRING -> SwiftTypes.String | |||
ParameterType.BOOLEAN -> SwiftTypes.Bool | |||
else -> throw CodegenException("Unsupported parameter type: $type") | |||
ParameterType.STRING_ARRAY -> SwiftTypes.StringArray |
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.
Same change as in AuthSchemeResolverGenerator
above.
Issue #
awslabs/aws-sdk-swift#1513
Description of changes
Updates Smithy from 1.47.0 to 1.49.0.
There are corresponding changes in aws-sdk-swift PR awslabs/aws-sdk-swift#1515 .
Scope
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.