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

fix: stop serializing default values for @clientOptional members #917

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

ianbotsf
Copy link
Contributor

Issue #

Closes awslabs/aws-sdk-kotlin#1016

Description of changes

The SDK incorrectly serializes structure members' default values in requests regardless of the @clientOptional trait. As recently clarified in Smithy reference docs, @clientOptional supersedes @default and should cause serializers to skip recognizing/sending a default value.

This affected EC2's DescribeVpcsRequest.MaxResults and potentially many other structure members.

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

@ianbotsf ianbotsf requested a review from a team as a code owner August 14, 2023 19:46
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ianbotsf ianbotsf merged commit 724ebd1 into main Aug 14, 2023
@ianbotsf ianbotsf deleted the fix-client-optional-defaults branch August 14, 2023 20: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.

EC2::DescribeVpcs uses incorrect MaxResults value by default
3 participants