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
I've noticed that this plugin is adding "List" to the end of every label for repeated fields on a Message. The logic in the code confirms my observations. Is there a reason for this? I'm finding it to be an annoyance and source of confusion, particularly because "List" is appended even for labels that are already pluralized. In fact, a label named object_list would become ObjectListList.
It'd be nice to at least be able to disable this functionality, although maybe I am missing something and there is a good reason it's set up this way since I am relatively new to grpc and protocol buffers.
The text was updated successfully, but these errors were encountered:
The JavaScript protoc plugin is responsible for generating JavaScript sources from proto files, ts-protoc-gen only generates the matching typescript definitions.
I personally do not believe this is something that will be changed and I would suggest you use the plural form when naming repeated fields (ie objects).
Right that makes sense that it would be an issue with the underlying protoc plugin. Too bad it's unlikely to be changed, but I might open an issue there anyhow. objects is much clearer than objectsList, at least in my mind. Thank you.
I've noticed that this plugin is adding "List" to the end of every label for repeated fields on a
Message
. The logic in the code confirms my observations. Is there a reason for this? I'm finding it to be an annoyance and source of confusion, particularly because "List" is appended even for labels that are already pluralized. In fact, a label namedobject_list
would becomeObjectListList
.It'd be nice to at least be able to disable this functionality, although maybe I am missing something and there is a good reason it's set up this way since I am relatively new to grpc and protocol buffers.
The text was updated successfully, but these errors were encountered: