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

WithPreserveProtoFieldNames and JsonParser #16709

Open
jamiewinder opened this issue May 1, 2024 · 1 comment
Open

WithPreserveProtoFieldNames and JsonParser #16709

jamiewinder opened this issue May 1, 2024 · 1 comment
Labels
untriaged auto added to all issues by default when created.

Comments

@jamiewinder
Copy link

In C# (and in general), if an IMessage is formatted as JSON with PreserveProtoFieldNames enabled, is there a way tell the JsonParser (or some other parse utility) to expect the fields in the same format?

@jamiewinder jamiewinder added the untriaged auto added to all issues by default when created. label May 1, 2024
@puellanivis
Copy link

As far as I understand it, parsers are required to accept both: (from the JSON mapping section of the standard)

Parsers accept both the lowerCamelCase name (or the one specified by the json_name option) and the original proto field name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged auto added to all issues by default when created.
Projects
None yet
Development

No branches or pull requests

2 participants