proto3-suite icon indicating copy to clipboard operation
proto3-suite copied to clipboard

Need to lowerCamelCase JSONPB key names

Open j6carey opened this issue 2 years ago • 0 comments

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.

j6carey avatar Jul 06 '22 17:07 j6carey