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? 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
Currently, array literals are not parsed in the text_proto format.
For instance, consider the following message:
message Greetings { repeated string greetings = 1; }
If you try to parse the following textproto with parse_from_str, you will get an error:
parse_from_str
greetings: ["hello", "hi"]
ParseError { error: TokenizerError(ExpectStrLit), loc: Loc { line: 1, col: 12 } }
Instead, parse_from_str expects you to use string literals and repeat the field multiple times.
greetings: "hello" greetings: "hi"
Array literals are valid in textproto format and should be supported.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, array literals are not parsed in the text_proto format.
For instance, consider the following message:
If you try to parse the following textproto with
parse_from_str
, you will get an error:greetings: ["hello", "hi"]
Instead,
parse_from_str
expects you to use string literals and repeat the field multiple times.Array literals are valid in textproto format and should be supported.
The text was updated successfully, but these errors were encountered: