-
Notifications
You must be signed in to change notification settings - Fork 203
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
Problems with rendering of httpResponseCode
binding
#1229
Labels
server
Rust server SDK
Comments
82marbag
pushed a commit
that referenced
this issue
May 24, 2022
http response codes will be: * @http's code, if @httpResponseCode is not set * the default one, if neither of the above are set @httpResponseCode honors @required and generates code that doesn't use Option when applied. Closes: #1229 Signed-off-by: Daniele Ahmed <[email protected]>
2 tasks
82marbag
pushed a commit
that referenced
this issue
May 24, 2022
http response codes will be: * @http's code, if @httpResponseCode is not set * the default one, if neither of the above are set @httpResponseCode honors @required and generates code that doesn't use Option when applied. Closes: #1229 Signed-off-by: Daniele Ahmed <[email protected]>
82marbag
pushed a commit
to 82marbag/smithy
that referenced
this issue
May 26, 2022
These tests ensure that * @required and @httpResponseCode are correctly handled * @http's code is used in place of @httpResponseCode when the latter is not used They were not handled correctly in smithy-lang/smithy-rs#1229. Signed-off-by: Daniele Ahmed <[email protected]>
82marbag
added a commit
that referenced
this issue
May 27, 2022
* Correctly generate http response codes http response codes will be: * `@httpResponseCode` if set * `@http`'s code, if `@httpResponseCode` is not set * the default one, if neither of the above are set @httpResponseCode honors @required and generates code that doesn't use Option when applied. Closes: #1229
gosar
pushed a commit
to smithy-lang/smithy
that referenced
this issue
Jun 15, 2022
Add tests for httpResponseCode These tests ensure that * @required and @httpResponseCode are correctly handled * @http's code is used in place of @httpResponseCode when the latter is not used They were not handled correctly in smithy-lang/smithy-rs#1229.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are two problems with the code that handles this trait:
http
trait if the targetted member is optional and no value is provided by the service implementer. See MakehttpResponseCode
be coupled withrequired
smithy#1098 (comment).The text was updated successfully, but these errors were encountered: