-
Notifications
You must be signed in to change notification settings - Fork 43
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
correctness fixes to get Envoy xDS protos compiling #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am so sorry for missing this and not reviewing this sooner, thank you for this contribution 👍
I left a minor nit, which you can take or leave, just let me know.
If you could please sign the CLA, I can get this in. It's pretty boilerplate, but let me know if there are any issues.
@@ -57,7 +58,7 @@ impl<'a> Resolver<'a> { | |||
.path() | |||
.iter() | |||
.zip(path.path()) | |||
.filter(|(a, b)| a == b) | |||
.take_while(|(a, b)| a == b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👌
.filter(|variant| { | ||
// Skip duplicate enum values. Protobuf allows this when the | ||
// 'allow_alias' option is set. | ||
numbers.insert(variant.number()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could get a test of this added to pbjson-test?
Hi! Is there any news about this PR? |
Co-authored-by: Raphael Taylor-Davies <[email protected]>
I've started working on it. |
Closed by #103 |
👋🏻 I'm working to read in some Envoy protobufs, and its a large project with a bunch of corner cases (e.g. fields named
map
, enum values namedself
and with theallow_alias
option enabled, etc). The below commits are what I needed to get things at least compiling!