-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 awsQueryCompatible trait support to API #4523
Conversation
When awsQueryCompatible trait is found, it's made available as an API property. When this property is found, the error code is returned by looking up the mapping. This is a pre-requisite for migrating services from AWSQuery wire protocol to AWSJson. A test service has been generated for validating assumptions Added unit tests as per the SEP
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.
Thanks for putting together this update. I've included a little bit of feedback. It would be good to have the unit test added that asserts the mapping of a deserialized error behaves as expected.
private/model/api/codegentest/service/awsquerycompatible/awsquerycompatible_test.go
Outdated
Show resolved
Hide resolved
private/model/api/codegentest/service/awsquerycompatible/awsquerycompatible_test.go
Outdated
Show resolved
Hide resolved
private/model/api/codegentest/service/awsquerycompatible/awsquerycompatible_test.go
Outdated
Show resolved
Hide resolved
- Add unmodelled exceptoion handling capability by adding new error types - Add unmodelled exceptions to exceptionFromCode mapping - Improve testing by adding integration testts
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.
Thanks for making these updates! The changes look good with a couple minor edits. Mainly with new exception type to be unexported and naming.
Closing due to the changes to the SEP |
When awsQueryCompatible trait is found, it's made available as an API property. When this property is found,
the error code is returned by looking up the mapping. This is a pre-requisite for migrating services from
AWSQuery wire protocol to AWSJson.
A test service has been generated for validating assumptions
Added unit tests as per the SEP
For changes to files under the
/model/
folder, and manual edits to autogenerated code (e.g./service/s3/api.go
) please create an Issue instead of a PR for those type of changes.If there is an existing bug or feature this PR is answers please reference it here.