protobuf.js icon indicating copy to clipboard operation
protobuf.js copied to clipboard

How to check for fields in message that are not in proto file definition

Open guikubivan opened this issue 2 years ago • 0 comments

Using protobuf3 and just realized some fields were not being encoded because I was using snake case, where it seems protobufjs expected camel case, so would like to have a utility function that checks if I'm including fields that are not in proto file definition.

I guess I can add one myself, but wanted to see if I that exists already. Also, is the camel case field names a protobuf3 language thing or is there a way to use snake case in message fields since my proto file uses snake case?

guikubivan avatar May 12 '22 01:05 guikubivan