We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
protobuf.js version: 7.2.6
proto-files support repeated options that should be parsed as an array https://protobuf.com/docs/language-spec#resolving-option-names
foo.proto
syntax = "proto3"; import "google/protobuf/descriptor.proto"; extend google.protobuf.MessageOptions { repeated string fooOption = 80000; } message Foo { option fooOption = "some 1"; option fooOption = "some 2"; }
foo.js
console.log('MESSAGE OPTIONS', root.lookupType('Foo').options);
The output is { fooOption: "some 2"} but should be { fooOption: ["some 1", "some 2"]}
{ fooOption: "some 2"}
{ fooOption: ["some 1", "some 2"]}
For example, in java:
public class Main { public static void main(String[] args) { var fooExtension = Foo.getDescriptor().getOptions().getExtension(Foo.fooOption); for(var i : fooExtension) { System.out.println("i = " + i); } } }
The output is:
some 1 some 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
protobuf.js version: 7.2.6
proto-files support repeated options that should be parsed as an array
https://protobuf.com/docs/language-spec#resolving-option-names
foo.proto
foo.js
The output is
{ fooOption: "some 2"}
but should be{ fooOption: ["some 1", "some 2"]}
For example, in java:
The output is:
The text was updated successfully, but these errors were encountered: