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

feat: add support for awsQueryCompatible trait #850

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Conversation

dayaffe
Copy link
Collaborator

@dayaffe dayaffe commented Nov 4, 2024

Related to awslabs/aws-sdk-swift#1810

Issue #

SWIFT-1865

Description of changes

  • Make an operation's baseError query compatible if the service is marked with awsQueryCompatible trait

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

"let baseError = try \$N(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: \$L).makeAWSJsonErrorQueryCompatible(errorDetails: errorDetails)",
customizations.baseErrorSymbol,
noErrorWrapping
)
Copy link
Contributor

Choose a reason for hiding this comment

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

See my notes in the other PR. I'd prefer to roll this logic into the AWSJSONError constructor.

@dayaffe dayaffe requested a review from jbelkins November 5, 2024 18:29
@dayaffe dayaffe merged commit c7344b2 into main Nov 5, 2024
31 checks passed
@dayaffe dayaffe deleted the day/query-compat branch November 5, 2024 20:37
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