Skip to content
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

Enable overriding google.protobuf namespace in fromDescriptor #1073

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarcusLongmuir
Copy link

Fixes #1072 <- Full explanation of the feature request in this issue.

TL;DR for the above issue - To enable usage of custom options in descriptors being decoded with fromDescriptor you need to be able to override the google.protobuf namespace used to decode a FileDescriptorSet with one that has the extensions of the MessageOptions defined. You also need to have the resulting descriptor use camelCased field names as that's what the fromDescriptor code uses (they come from the JSON field names in descriptor.json).

I understand this is an experimental feature at the moment and there isn't much test coverage for this as far as I can tell, but I'm happy to add tests for this if someone can describe how they should work.

@MarcusLongmuir MarcusLongmuir changed the title Enable overriding descriptor in fromDescriptor Enable overriding google.protobuf namespace in fromDescriptor Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant