Skip to content
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

Merged
merged 4 commits into from
May 22, 2024
Merged

chore: Update to Smithy 1.49.0 #733

merged 4 commits into from
May 22, 2024

Conversation

jbelkins
Copy link
Contributor

@jbelkins jbelkins commented May 21, 2024

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@jbelkins jbelkins marked this pull request as ready for review May 21, 2024 22:27
@jbelkins jbelkins requested review from sichanyoo and dayaffe May 21, 2024 22:40
@jbelkins jbelkins merged commit 4f95ff8 into main May 22, 2024
17 checks passed
@jbelkins jbelkins deleted the jbe/adopt_smithy_1_49_0 branch May 22, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants