-
Notifications
You must be signed in to change notification settings - Fork 654
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
Adds RestJson deserializer and middleware generation support #568
Adds RestJson deserializer and middleware generation support #568
Conversation
4f031cf
to
25d0f83
Compare
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.
Good change, I think the biggest issue is the handling of unmodeled API errors, and putting modeled API errors in the out.Result
field. All serialized error values should be returned as err
. I think th eout.Result
was to be reserved for successful unmodeled operation output shape.
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Show resolved
Hide resolved
… for output, error shapes
60c29a0
to
b79d802
Compare
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.
Looks good couple minor suggestions.
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
...o-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestJsonProtocolGenerator.java
Outdated
Show resolved
Hide resolved
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.
looks good minor suggestion.
* adds support for restjson deserializer middleware, json deserializers for output, error shapes * adds error check for discard unknown field deserializer util * suggested feedback * minor feedback updates
* adds support for restjson deserializer middleware, json deserializers for output, error shapes * adds error check for discard unknown field deserializer util * suggested feedback * minor feedback updates
Description of changes
Related to aws/smithy-go#48