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

Handle reserved field names & numbers when they're nested inside groups

Open Asgavar opened this issue 4 years ago • 0 comments

Currently, trying to parse a .proto file with such construct results in an error:

Error: illegal token 'reserved'

However, there's nothing in the Protocol Buffers specification[1] that would suggests that it's illegal, moreover, even Google itself does use it, e.g. in their Chromium Sync protocol[2].

[1] https://developers.google.com/protocol-buffers/docs/reference/proto3-spec#reserved [2] https://chromium.googlesource.com/chromium/src.git/+/refs/heads/master/components/sync/protocol/sync.proto#848

Asgavar avatar Jan 03 '20 16:01 Asgavar