Skip to content

Fixed case of struct.proto fields to match protobuf definition#2119

Open
dlizewski wants to merge 1 commit intoprotobufjs:masterfrom
dlizewski:fix/structCase
Open

Fixed case of struct.proto fields to match protobuf definition#2119
dlizewski wants to merge 1 commit intoprotobufjs:masterfrom
dlizewski:fix/structCase

Conversation

@dlizewski
Copy link
Copy Markdown

changed case of fields in common.js "struct" to match the case in the original struct.proto
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/struct.proto#L66

Matching the case as the original protobuf allows the json representation to match the protobuf defintion with or without the keepCase option.

@dlizewski dlizewski changed the title Fixed case of struct.proto fields to match protobuf definction Fixed case of struct.proto fields to match protobuf definition Jan 24, 2026
@alexander-fenster
Copy link
Copy Markdown
Contributor

I believe this is fundamentally a correct change but if I understand correctly, it will be breaking for existing code that expects camelCase there, so I'm not sure we can safely merge this without breaking code that depends on this.

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.

2 participants