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
Hi @johan44co - I'm wondering if this is an issue with your enum definitions. I know for the C# generation, to get the expected output, the enum items must all be prefixed with the enum name. For instance, the Groups enum should be
With your current proto definition, the C# code that gets generated would be:
publicenumGroups{UnknownGroups,Test0,Test1}
For your Unlisted enum, since they are not all prefixed with UNLISTED_, the code generation would fail to recognize the prefix, and each item would simply be converted to pascal case in c#. I'm assuming the ts protobuf generator will do something similar with the naming conventions.
left code generated using; namely/protoc:1.42_2
right code generated using; namely/protoc-all:1.51_1
I have tried passing the option
--ts_opt useOptionals=none
but it does not have any effectProto definition for reference
The text was updated successfully, but these errors were encountered: