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
Is your feature request related to a problem? Please describe.
The generated values in the enums are numbers, but when we are working with enums: String we need to adapt each enum from int to string, it looks something like this
enum CarsFromProto {
Audi = 1
}
enum Cars {
Audi = "Audi"
}
Describe the solution you'd like
Add option to generate the enums with string values instead int values.
You can check how it's can be done in other libraries like ts-proto
With --ts_proto_opt=stringEnums=true, the generated enum types will be string-based instead of int-based.
What is the motivation / use case for changing the behavior?
Adding support for all users that want to use string enums
The text was updated successfully, but these errors were encountered:
Feature Request
Add support in stringEnums
Is your feature request related to a problem? Please describe.
The generated values in the enums are numbers, but when we are working with enums: String we need to adapt each enum from int to string, it looks something like this
Describe the solution you'd like
Add option to generate the enums with string values instead int values.
You can check how it's can be done in other libraries like ts-proto
With --ts_proto_opt=stringEnums=true, the generated enum types will be string-based instead of int-based.
What is the motivation / use case for changing the behavior?
Adding support for all users that want to use string enums
The text was updated successfully, but these errors were encountered: