-
Notifications
You must be signed in to change notification settings - Fork 196
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
Use the default(..) trait to source default information #2982
Conversation
059aa70
to
16e8771
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
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.
The change looks good.
Because of Smithy IDL v1 semantics, we were incorrectly providing generalized default values
Is there any test that is broken because of the reason above and is now fixed with this PR?
16e8771
to
841afc2
Compare
No, I wouldn't expect there to be—this change is only load-bearing in combination with #1767 |
A new generated diff is ready to view.
A new doc preview is ready to view. |
841afc2
to
1f08e01
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
Motivation and Context
Because of Smithy IDL v1 semantics, we were incorrectly providing generalized default values. This isn't correct in Smithy IDLv2 where the
default
trait controls default behavior.Description
Testing
Checklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesCHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.