-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Labels
Description
What language does this apply to?
This is for proto3 Javascript code generation.
Describe the problem you are trying to solve.
A repeated field, when generated to javascript, will be appended with a List suffix. This behaviour introduces (forced) changes to the user-defined names which can sometimes be unwanted as we'd (generally) expect the field names to match the original proto file.
Describe the solution you'd like
Field annotation (a boolean) to force singular naming.
Describe alternatives you've considered
- Writing a custom mapper to rename the fields to their original proto name.
- Modifying generated JS code.
Additional context
https://stackoverflow.com/questions/51508553/why-does-the-protobuf-javascript-compiler-suffix-collections-with-list-map
untra, alexeymenkov, namhong2001, guyisra, majelbstoat and 23 more