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

Relax http payload constraints #679

Merged

Conversation

JordonPhillips
Copy link
Contributor

Issue #, if available:

Resolves #636

Description of changes:

This relaxes the http payload constraints so that it can be applied to members that target sets, lists, and maps. Since those targets aren't currently compatible with the AWS protocols, a validator was added that only applies if one of those protocol traits is applied.

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

This allows the httpPayload trait to be applied to sets, lists, and
maps.
The AWS protocols do not currently support http payloads that target
sets, lists, or maps. This adds validators to ensure that such
bindings do not get used.
@JordonPhillips JordonPhillips merged commit 63b5277 into smithy-lang:master Jan 5, 2021
@kstich kstich mentioned this pull request Feb 22, 2021
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.

Relax httpPayload constraints
2 participants