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 awsQueryCompatible trait support to API #4523

Closed
wants to merge 7 commits into from

Conversation

eddy-aws
Copy link
Contributor

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.

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
@eddy-aws eddy-aws changed the title Add awsQueryCompatible trait support to service Add awsQueryCompatible trait support to API Aug 17, 2022
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.

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.

- Add unmodelled exceptoion handling capability by adding new error types
- Add unmodelled exceptions to exceptionFromCode mapping
- Improve testing by adding integration testts
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.

Thanks for making these updates! The changes look good with a couple minor edits. Mainly with new exception type to be unexported and naming.

private/model/api/api.go Outdated Show resolved Hide resolved
private/model/api/api.go Outdated Show resolved Hide resolved
@eddy-aws eddy-aws requested a review from jasdel August 19, 2022 00:19
@eddy-aws
Copy link
Contributor Author

Closing due to the changes to the SEP

@eddy-aws eddy-aws closed this Oct 19, 2022
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.

None yet

2 participants