You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ent allows enum Values with special characters as long as they are valid Go identifiers. For NamedValues anything is allowed. In entproto the keys of the configured enum mapping must match the values of the field.Enum but if those contain special characters, the protobuf and gRPC service generation currently fails.
The issue is present in the latest release.
I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
Protobuf message and gRPC service generation fails for field.Enum with values containing special characters:
Ent allows enum
Values
with special characters as long as they are valid Go identifiers. ForNamedValues
anything is allowed. In entproto the keys of the configured enum mapping must match the values of thefield.Enum
but if those contain special characters, the protobuf and gRPC service generation currently fails.Current Behavior 😯
Protobuf message and gRPC service generation fails for
field.Enum
with values containing special characters:Expected Behavior 🤔
Message and service generation should succeed while preserving the Proto Style Guide for value names:
Steps to Reproduce 🕹
Steps:
field.Enum
Values
orNamedValues
containing special characters ([^a-zA-Z0-9_]+
)entproto.Field
andentproto.Enum
field annotationsYour Environment 🌎
I'm using the
The text was updated successfully, but these errors were encountered: