-
Notifications
You must be signed in to change notification settings - Fork 219
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
Default trait applied to streaming in version 1 #1456
Comments
Related: #1380 |
You're seeing that in the in memory semantic model when using the Smithy libraries. The Smithy reference implementation automatically transforms all models to be valid for v2 semantics. It does that for anything that previously had a default zero value too. Tools that don't use or know about the default trait can simply ignore it. A code generator that supports both v1 and v2 should not ignore it. In Smithy v1, these members were implicitly considered to have a default by most server generators because it's not really possible to know if a streaming member was supplied but empty, so we decided to make that explicit in v2. |
* Clarify that streaming trait members need httpPayload when using an http binding protocol. * Clarify that servers should interpret streaming members as having a default value of zero bytes. * Mention this in the v1 docs too. * Fixed a doc linking issue for the streaming docs where we were using the wrong casing. Closes #1380 Addresses #1456
* Clarify that streaming trait members need httpPayload when using an http binding protocol. * Clarify that servers should interpret streaming members as having a default value of zero bytes. * Mention this in the v1 docs too. * Fixed a doc linking issue for the streaming docs where we were using the wrong casing. Closes #1380 Addresses #1456
The data member in this v1 model is being applied the
@default
trait.In the v1 spec there is no mention of this behavior.
The text was updated successfully, but these errors were encountered: