-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser: doesn't support repeated option value #1329
Comments
+1 |
+1 |
wrote a simple hack: added new function:
change parseOptionValue function to following:
|
The format for options is not JSON which is why message MessageWithRepeatedOption {
optional int32 value = 1 [(customized_option) = { in: 1 in: 2 in: 3 }];
} and altough the parser would not fail in this case, it will also not parse it correctly. There's a PR waiting for a long time now to be reviewed which fixes this: #1256 |
protobuf.js version: 5.0.3
We call it with
pbjs.main
(command line API).The stacktrace isn't very useful. But after deleted
in: [1, 2, 3]
in.proto
file, everything worked Ok.Related code: https://github.com/protobufjs/protobuf.js/blob/master/src/parse.js#L556-L577 . It seems that parser doesn't handle
[
and]
.The text was updated successfully, but these errors were encountered: