-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
ignoring single-quoted reserved field names #94
Comments
My PR (#95) seems to make the reserved w/ single-quote test pass, but when actually parsing a full message, I get this failure from the
The message in question is: syntax = "proto3";
package test;
message Channel {
reserved 'thing', 'another';
reserved "more", 'mixed';
int64 id = 1;
string name = 2;
string description = 3;
} |
thank you for reporting this issue. I will investigate it and review the PR |
the parser is not (completely) validating the proto file so empty reserved names should not be ignored. Tools such as protolint and protoc will. |
makes sense -- great callout.
I will run through the test and build my tool against this version and try it out. Thanks! |
I'm not certain about the expected
"'bar'"
or"'foo'"
literals in the test, but thelen(r.FieldNames)
should be 2.This is in reference to a user report from one of my repos: nilslice/protolock#65
The text was updated successfully, but these errors were encountered: