Skip to content

Use camelCase in enums inside messages #671

Answered by stephenh
netanel-utila asked this question in Q&A
Discussion options

You must be logged in to vote

No, because of the concern with naming conflicts, i.e. if there was a message called message UserStatus.

Granted, this is unlikely, but in the huge/wide array of schemas that people use ts-proto for, "anything can happen".

We could potentially try and probe "does message UserStatus" actually exist, and if it does not, then do not use the _ delimited name...

If you wanted to try a PR that did that, that'd be great.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@netanel-utila
Comment options

Answer selected by netanel-utila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants