Open nilsreichardt opened 3 years ago
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: