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

Need to lowerCamelCase JSONPB key names #206

Open
j6carey opened this issue Jul 6, 2022 · 0 comments
Open

Need to lowerCamelCase JSONPB key names #206

j6carey opened this issue Jul 6, 2022 · 0 comments

Comments

@j6carey
Copy link
Collaborator

j6carey commented Jul 6, 2022

According to the protobuf v3 specification:

Message field names are mapped to lowerCamelCase and become JSON object keys. If the json_name field option is specified, the specified value will be used as the key instead. Parsers accept both the lowerCamelCase name (or the one specified by the json_name option) and the original proto field name.

Current compile-proto-file keeps the original field name.

Note that testCase13 in tests/SimpleDecodeDotProto.hs would be able to decode from the JSONPB format emitted by Python if we were to add support for parsing lowerCamelCase conversions of field names.

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

No branches or pull requests

1 participant