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

Adds RestJson deserializer and middleware generation support #568

Merged

Conversation

skotambkar
Copy link
Contributor

@skotambkar skotambkar commented May 27, 2020

Description of changes

  • Adds Rest Json deserializer generation support
  • Adds Rest Json deserializer middleware generation support

Related to aws/smithy-go#48

@skotambkar skotambkar force-pushed the smithy/deserMiddleware branch 2 times, most recently from 4f031cf to 25d0f83 Compare May 27, 2020 21:02
@skotambkar skotambkar marked this pull request as ready for review May 27, 2020 21:15
Copy link
Contributor

@jasdel jasdel left a 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.

@skotambkar skotambkar force-pushed the smithy/deserMiddleware branch from 60c29a0 to b79d802 Compare June 1, 2020 20:28
Copy link
Contributor

@jasdel jasdel left a 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.

@skotambkar skotambkar requested a review from jasdel June 2, 2020 04:49
Copy link
Contributor

@jasdel jasdel left a 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.

aws/protocol/json/decoder_util.go Outdated Show resolved Hide resolved
aws/protocol/json/decoder_util.go Outdated Show resolved Hide resolved
aws/protocol/json/decoder_util.go Outdated Show resolved Hide resolved
@skotambkar skotambkar requested a review from jasdel June 2, 2020 17:29
@skotambkar skotambkar merged commit a3aeb27 into aws:feature/SmithyAPIClient Jun 2, 2020
@skotambkar skotambkar deleted the smithy/deserMiddleware branch June 2, 2020 18:17
skmcgrail pushed a commit to skmcgrail/aws-sdk-go-v2 that referenced this pull request Aug 21, 2020
* 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
skmcgrail pushed a commit that referenced this pull request Sep 24, 2020
* 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
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.

3 participants