-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
private/model/api: Generate enum shape functions to retrieve all values #3447
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to create this PR @bflad. The codegeneration change looks good, but in order to ensure this doesn't have conflicts in the future i think we'll have to go down the route of EnumType_Values
naming for this utility. If an API ever modeled an enum member named Values
then the idiomatic generation pattern would conflict.
Will also want to rebase, but we can update that too before merge, so you don't have to worry about chasing the SDK's API updates. |
b26f08b
to
ad72e27
Compare
Switched to |
bcb40de
to
8b3f250
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the update @bflad . We'll rebase and regenerate the API models after the API model update later today, and merge with the latest version of the SDK.
42df8e0
to
c80db5d
Compare
c80db5d
to
e02d571
Compare
Closes #3441
Allows consumers to easily retrieve all values of an enumeration shape.
Maintainer note: Happy to change this to the non-idiomatic
_Values()
naming if desired.