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

entproto/cmd/protoc-gen-entgrpc: handle enums with caps #343

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

rotemtam
Copy link
Collaborator

Closes ent/ent#2681, code relied implicitly on enum values to be lowercase, such that converting between ent and proto enums would be satisfied by ToLower/ToUpper. This would break where the enum value was capitalized as in ent/ent#2681.

@rotemtam rotemtam requested review from a8m, giautm and masseelch June 27, 2022 11:47
if f.IsEnumFIeld {
if f.IsEnumField {
Copy link
Member

Choose a reason for hiding this comment

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

😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

😅

@rotemtam rotemtam merged commit 561b11c into master Jun 27, 2022
@rotemtam rotemtam deleted the entproto-cap-enums branch June 27, 2022 12:13
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.

Validation issues with GRPC when using uppercase values in enums.
2 participants