Skip to content

Conversation

@joewyz
Copy link
Contributor

@joewyz joewyz commented Nov 14, 2025

This PR includes multiple changes:

  1. added protocol tests for AWS JSON 1.1
  2. allowed awsJson protocols to use TimestampResolver
  3. added error type sanitizer for JSON protocols given we are using __type as the error's shapeId and different JSON protocols have different requirement for __type's format.
    With this fix, those protocol tests with __type requirement can pass.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

*/
public AwsJson1Protocol(ShapeId service) {
super(TRAIT_ID, service);
super(TRAIT_ID, service, ErrorTypeSanitizer::REMOVE_URI);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think both of these protocols would need to remove namespace and URI. IIRC, an error can have a full namespace in the response even if using aws json 1.0.

Copy link
Contributor Author

@joewyz joewyz Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From our doc, the 1.0 will use full shapeid for type. Does that indicate we should preserve the namespace?

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