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

Update smithy-diff for strings with the enum trait to enum shapes #1409

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

syall
Copy link
Contributor

@syall syall commented Sep 16, 2022

Issue #, if available:

N/A


Description of changes:

Update smithy-diff for strings with the enum trait to enum shapes

Remove the following noise from smithy-diff:

  • Errors for changing shape type from strings with the enum trait to enum shapes since the enum trait is deprecated.
  • Notes for members added to the converted enum shapes.

Updated ChangedEnumTrait to not just compare changed enum traits, but also changes of an enum trait to its converted enum shape.


Testing:

  • Run ./gradlew clean build check :smithy-cli:runtime
    • Included new unit tests
  • Copy 2 example 1.0 -> 2.0 models from aws-sdk-go-v2
  • Run smithy cli diff on the 2 models and verify logs

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

@syall syall force-pushed the smithy-diff-noise-cleanup branch 3 times, most recently from f0def3c to 0d27829 Compare September 19, 2022 18:34
@syall syall changed the title Smithy diff noise cleanup Update smithy-diff for strings with the enum trait to enum shapes Sep 19, 2022
@syall syall marked this pull request as ready for review September 19, 2022 18:44
@syall syall requested a review from a team as a code owner September 19, 2022 18:44
@syall syall force-pushed the smithy-diff-noise-cleanup branch 2 times, most recently from 309d92e to a179744 Compare September 21, 2022 00:52
@syall syall requested a review from sugmanue September 21, 2022 16:20
Remove the following noise from smithy-diff:

- Errors for changing shape type from strings with the `enum` trait to enum shapes since the `enum` trait is deprecated.
- Notes for members added to the converted enum shapes.

Updated `ChangedEnumTrait` to not just compare changed `enum` traits, but also changes of an `enum` trait to its converted enum shape.
@syall syall force-pushed the smithy-diff-noise-cleanup branch from a179744 to bc7bd4e Compare September 21, 2022 16:53
@syall syall merged commit 53aa9d7 into smithy-lang:main Sep 21, 2022
@syall syall deleted the smithy-diff-noise-cleanup branch September 21, 2022 17:10
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.

2 participants