do not allow to extend same field twice to prevent the error#1784
do not allow to extend same field twice to prevent the error#1784alexander-fenster merged 4 commits intoprotobufjs:masterfrom
Conversation
|
@ThePlenkov Would it be possible to add a unit test for this case? Thank you! |
|
To test the case you need to but a breakpoint here: Line 278 in 62941d4 Then during Probably the root of the problem is deeper - and the descriptor set should be generated differently - but I have no expertise to comment on that. |
|
Actually I realized what happens - and is not even related to import. It's only about using fromDescriptor with extended fields. I've used a standard test.proto file for that |
|
@alexander-fenster hi! Did you have a change to look at unit tests for this problem may be? Thank you! |
|
Hi! May I ask please what's the reason of this change not going through? Thanks! |
|
Thanks for the fix @ThePlenkov 🙇 |
|
@alexander-fenster is there anything else blocking this PR review? It is responsible for fixing server reflection. |
Fixing the issue #1783
In the case if we have a call like this:
where decodedDescriptorSet constains files which have same field ( extension + original file ) like in my case validation.proto + google_protobuf.proto ( see the example from the referenced issue ).