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

Convert to internal trait from tag #1739

Merged
merged 3 commits into from
Apr 20, 2023

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Apr 18, 2023

This PR updates how EnumShapes are converted from strings with the deprecated @enum trait by adding the @internal trait to the resulting Enum shape member when when the source enum value was tagged with internal.

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

@srchase srchase requested a review from a team as a code owner April 18, 2023 20:36
@gosar
Copy link
Contributor

gosar commented Apr 18, 2023

We should document this behavior too. I think add javadoc to relevant methods in EnumShape, ModelTransformer.

I also noticed we have ChangeStringEnumsToEnumShapes but it is not documented in https://smithy.io/2.0/guides/building-models/build-config.html#transforms - it should be added there and this behavior documented there - this one can be separate PR.

@srchase
Copy link
Contributor Author

srchase commented Apr 19, 2023

I also noticed we have ChangeStringEnumsToEnumShapes but it is not documented in https://smithy.io/2.0/guides/building-models/build-config.html#transforms - it should be added there and this behavior documented there - this one can be separate PR.

Added separate PR in #1740.

@srchase srchase merged commit 9e30a51 into smithy-lang:main Apr 20, 2023
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.

5 participants