Skip to content

feat: Optionally preserve proto field names#76

Merged
kodiakhq[bot] merged 2 commits intoinfluxdata:mainfrom
rnarubin:preserve_proto
Oct 26, 2022
Merged

feat: Optionally preserve proto field names#76
kodiakhq[bot] merged 2 commits intoinfluxdata:mainfrom
rnarubin:preserve_proto

Conversation

@rnarubin
Copy link
Copy Markdown
Contributor

@rnarubin rnarubin commented Oct 4, 2022

This change adds a flag to the code-gen builder, allowing output json
fields to use their proto-schema defined field names instead of being
converted to lowerCamelCase.

Preserving proto field names is mentioned as an optional feature in the
protobuf json specification1. This change builds on the previous
support2 for deserializing preserved proto field names.

rnarubin and others added 2 commits October 4, 2022 10:24
This change adds a flag to the code-gen builder, allowing output json
fields to use their proto-schema defined field names instead of being
converted to lowerCamelCase.

Preserving proto field names is mentioned as an optional feature in the
protobuf json specification[1]. This change builds on the previous
support[2] for deserializing preserved proto field names.

[1]: https://developers.google.com/protocol-buffers/docs/proto3#json_options
[2]: influxdata#72
Copy link
Copy Markdown
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for taking so long to get to this, looks good to me. Took the liberty of updating the CI

@tustvold tustvold added the automerge Put in the merge queue label Oct 26, 2022
@kodiakhq kodiakhq Bot merged commit 11ad26a into influxdata:main Oct 26, 2022
@tustvold tustvold mentioned this pull request Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Put in the merge queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants