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

Expand default value protocol tests #2049

Merged

Conversation

milesziemer
Copy link
Contributor

Adds to existing json1_0 protocol tests for default values to include members with 0 default values - ie. empty string, 0, false. Also has an additional case for when the default value is explicitly provided in parameters, it should not be ignored. A case was also added for members that are clientOptional.

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

@milesziemer milesziemer requested a review from a team as a code owner November 20, 2023 18:45
Adds to existing json1_0 protocol tests for default values to include
members with 0 default values - ie. empty string, 0, false. Also has
an additional case for when _the_ default value is explicitly provided
in parameters, it should not be ignored. A case was also added for
members that are clientOptional.
@milesziemer milesziemer merged commit 86b07cd into smithy-lang:main Jan 24, 2024
10 checks passed
hpmellema pushed a commit to hpmellema/smithy that referenced this pull request Jan 25, 2024
Adds to existing json1_0 protocol tests for default values to include
members with 0 default values - ie. empty string, 0, false. Also has
an additional case for when _the_ default value is explicitly provided
in parameters, it should not be ignored. A case was also added for
members that are clientOptional.
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.

2 participants