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

feat: Add default trait support #1696

Merged
merged 7 commits into from
Sep 6, 2024
Merged

feat: Add default trait support #1696

merged 7 commits into from
Sep 6, 2024

Conversation

sichanyoo
Copy link
Contributor

@sichanyoo sichanyoo commented Aug 28, 2024

Issue #

Description of changes

  • Remove x-amz-content-sha256 header logic from Sha256TreeHashMiddleware as it cannot be set before CRT signer
  • Re-enable 8 protocol tests tagged with defaults that used to be disabled
// Re-enabled protocol tests for restJson1 with defaults tag
testRestJsonClientPopulatesDefaultValuesInInput
testRestJsonClientPopulatesNestedDefaultValuesWhenMissing
testRestJsonClientPopulatesDefaultsValuesWhenMissingInResponse

// Re-enabled protocol tests for awsJson10 with defaults tag
testAwsJson10ClientPopulatesDefaultValuesInInput
testAwsJson10ClientPopulatesNestedDefaultValuesWhenMissing
testAwsJson10ClientPopulatesDefaultsValuesWhenMissingInResponse
testAwsJson10ClientErrorCorrectsWhenServerFailsToSerializeRequiredValues

Note: testRestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse test is kept disabled because the underlying Smithy test case is wrong and the fix will be released with v1.51.0.

New/existing dependencies impact assessment, if applicable

Conventional Commits

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

@@ -25,13 +25,7 @@ public struct Sha256TreeHashMiddleware<OperationStackInput, OperationStackOutput
) async throws {
switch request.body {
case .data(let data):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got some warning messages in here we should take care of

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed warnings

Copy link
Contributor

@jbelkins jbelkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question

@sichanyoo sichanyoo merged commit aacff71 into main Sep 6, 2024
30 checks passed
@sichanyoo sichanyoo deleted the feat/default-trait-support branch September 6, 2024 19:49
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