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
The following is a protobuf3 valid message
message Example { string name = 1; }
As you see, no need for adding optional or required (e.g. required string name = 1;) because such a concept is not present anymore in v3.
optional
required
required string name = 1;
However, the parser fails with: illegal token 'string' unless I add optional or required keywords.
illegal token 'string'
required and optional keywords are not required (I don't even know if they are legal atm?)
None
The text was updated successfully, but these errors were encountered:
This is expected behavior. When ever you not give a hint to the protobuf version. V2 will be assumed.
Please try:
syntax = "proto3"; message Example { string name = 1; }
Sorry, something went wrong.
Makes sense. Thanks for the clarification!
No branches or pull requests
Describe the bug.
The following is a protobuf3 valid message
As you see, no need for adding
optional
orrequired
(e.g.required string name = 1;
) because such a concept is not present anymore in v3.However, the parser fails with:
illegal token 'string'
unless I addoptional
orrequired
keywords.Expected behavior
required
andoptional
keywords are not required (I don't even know if they are legal atm?)Screenshots
How to Reproduce
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None
The text was updated successfully, but these errors were encountered: