-
Notifications
You must be signed in to change notification settings - Fork 234
PascalCase support #89
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinghigh prioritymediumMedium effort issue, can fit in a single PRMedium effort issue, can fit in a single PR
Milestone
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghigh prioritymediumMedium effort issue, can fit in a single PRMedium effort issue, can fit in a single PR
For a PascalCase field, betterproto uses the snake case in the class field, and can handle multiple cases in input json. However, it converts it to the camel case in output json, while protobuf requires a pascal case in the input. This makes the json incompatible.
For example,
betterproto will output
{"camelCase": 1, "pascalCase": 3, "snakeCase": "ONE"}but protobuf is expecting
{"PascalCase": 3, "camelCase": 1, "snakeCase": "ONE"}