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

Add convenience method to get IntEnumShape from GenerateIntEnumDirective #2033

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

hpmellema
Copy link
Contributor

Description of changes:
Adds convenience method to get an IntEnumShape from the GenerateIntEnumDirective.

This provides parity with the GenerateEnumDirective that has an expectEnumShape method see here

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

Copy link
Contributor

@JordonPhillips JordonPhillips left a comment

Choose a reason for hiding this comment

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

I hate to say it but you should add a test

@hpmellema hpmellema merged commit 78f336f into smithy-lang:main Nov 7, 2023
10 checks passed
@hpmellema hpmellema deleted the int-enum-expect branch November 7, 2023 15:02
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