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

Add response code binding to http binding index #571

Merged

Conversation

JordonPhillips
Copy link
Contributor

This adds support for the httpResponseCode trait to the http binding
index, including a new RESPONSE_CODE location.

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

This adds support for the httpResponseCode trait to the http binding
index, including a new RESPONSE_CODE location.
@mtdowling
Copy link
Member

Does this automatically ensure that members bound to the httpResponseCode trait aren't part of the payload of a response?

This adds a trait conflict list for httpResponseCode and adds that
trait to the conflict lists for the other http binding traits.
@JordonPhillips
Copy link
Contributor Author

It wouldn't have been possible to bind to the payload, because it's the wrong type, and it wouldn't get bound to the document because that implicit binding only happens when there's no explicit one. It could have, however, been bound to other parts of the request. I updated the conflicts lists so that can no longer happen.

@JordonPhillips JordonPhillips merged commit 96c845b into smithy-lang:master Sep 17, 2020
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