-
Notifications
You must be signed in to change notification settings - Fork 33
chore: Update Smithy to 1.59.0 #937
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
Conversation
} | ||
let lhsHeaders = lhs.access { $0 }.sorted() | ||
let rhsHeaders = rhs.access { $0 }.sorted() | ||
return lhsHeaders == rhsHeaders |
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.
Refactored to avoid simultaneously holding two locks.
writer.writeInline("nil") | ||
return | ||
} | ||
|
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.
We were incorrectly rendering the expected value when a collection or aggregate shape when it is supposed to be absent (i.e. "null" in the Smithy node tree for expected value.) This if-else handles that case.
// Don't write a prefix header over a specific header that was also written to this request. | ||
// See the HttpEmptyPrefixHeadersRequestClient protocol tests on the REST protocols. | ||
writer.write("guard !items.exists(name: \"$paramName\\(prefixHeaderMapKey)\") else { continue }") | ||
|
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.
New protocol tests specify that specific headers bound to names can overwrite prefix headers. This guard
creates that behavior.
"let endpointParamsBlock = { [config] (context: \$N) in", | ||
"}", | ||
SmithyTypes.Context, | ||
) { |
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.
Reformat
Description of changes
Updates the SDK to Smithy 1.59.0 (latest version.)
Companion aws-sdk-swift PR: awslabs/aws-sdk-swift#1957
Scope
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.