Skip to content

Ensure descriptor conversion can handle default values #1198

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

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

Conversation

jroper
Copy link
Contributor

@jroper jroper commented Apr 10, 2019

Fixes #1196

If the descriptor has been serialized/deserialized by something that set the default values, then an error occurs during reading the descriptor. This fixes it.

Fixes protobufjs#1196

If the descriptor has been serialized/deserialized by something that set
the default values, then an error occurs during reading the descriptor.
This fixes it.
@jroper
Copy link
Contributor Author

jroper commented Apr 10, 2019

I wasn't sure what to do about tests here - I did add something to the tests for the descriptor, but that isn't run by the main build as far as I can see, and it doesn't even use a test framework. I'd be happy to make it use tape, just let me know what should be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Descriptors extension fails to take into account default values
2 participants