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

Allow error rename and disallow error rename for all AWS protocols #1554

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

AndrewFossAWS
Copy link
Contributor

@AndrewFossAWS AndrewFossAWS commented Dec 20, 2022

Issue #, if available:
#1545

Description of changes:

  • Allow error shapes rename
  • Disallow error shapes rename for all AWS protocols (until we have verified SDKs can support error rename)

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

@AndrewFossAWS AndrewFossAWS force-pushed the error-rename branch 9 times, most recently from fa4f969 to da8d246 Compare December 21, 2022 18:25
@AndrewFossAWS AndrewFossAWS marked this pull request as ready for review December 21, 2022 18:43
@AndrewFossAWS AndrewFossAWS requested a review from a team as a code owner December 21, 2022 18:43
@AndrewFossAWS AndrewFossAWS force-pushed the error-rename branch 3 times, most recently from 0f8cb89 to c9f6c85 Compare December 22, 2022 19:31
@AndrewFossAWS AndrewFossAWS force-pushed the error-rename branch 2 times, most recently from 9f12b31 to f300307 Compare January 4, 2023 00:50
@AndrewFossAWS AndrewFossAWS changed the title enable error rename by protocols Allow error rename and disallow error rename for all AWS protocols Jan 4, 2023

By default, Smithy permits renaming shapes to disambiguate shape ID conflicts in
the :ref:`service closure <service-closure>` via the ``rename`` property. However, services using this protocol are
not allowed to rename error shapes (shapes with :ref:`error trait <error-trait>` applied).
Copy link
Contributor Author

@AndrewFossAWS AndrewFossAWS Jan 4, 2023

Choose a reason for hiding this comment

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

This will be removed later when AWS SDKs have been verified to support error shape rename.

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