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

Build out the validation of google.protobuf.Any JSON support. #1744

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

Conversation

thomasvl
Copy link
Collaborator

@thomasvl thomasvl commented Jan 8, 2025

The upstream major languages directly use their type registries to eagerly validate type_urls. This means they will fail to decode or encode JSON for a lot of cases.

The conformance tests only cover some of this so I hacked in some C++ unittests to see what errors are thrown and then made the matching cases here and expanded our error handling to duplicate the results.

The bulk of the changes are really just update comments to cover what errors are now throw (not actual code changes).

@thomasvl thomasvl force-pushed the json_encoding_checks branch from e295e4e to 99f5cd1 Compare January 8, 2025 20:53
The upstream major languages directly use their type registries to eagerly
validate `type_url`s. This means they will fail to decode or encode JSON for a
lot of cases.

The conformance tests only cover some of this so I hacked in some C++ unittests
to see what errors are thrown and then made the matching cases here and expanded
our error handling to duplicate the results.

The bulk of the changes are really just update comments to cover what errors
are now throw (not actual code changes).
@thomasvl thomasvl force-pushed the json_encoding_checks branch from 99f5cd1 to f55b5db Compare January 8, 2025 21:19
@thomasvl thomasvl marked this pull request as ready for review January 8, 2025 21:37
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.

1 participant