-
Notifications
You must be signed in to change notification settings - Fork 13
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
Keep '_' in attribute name in generated code #40
Comments
There is a way to do this, right now we use the proto3 json mapping to get the names. You'd have to add an option to support keeping the original names around. |
Ok, nice. What option is this exactly and how to use it? |
Sorry I wasn't clear this is pretty straightforward to do, you have to change the code that looks at json_name and replace it with name in the places where it's used via a file option. There are existing examples of file options and here is one place we assume json naming
|
@rockwotj thanks for chiming in here! |
Description
If you have an underscore (
_
) as an attribute name, then it will be transformed into camel case. I didn't except this.Steps to reproduce
will be generated into
Is there a way to keep the
_
in the attribute name? My excepted out is:The text was updated successfully, but these errors were encountered: