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

feat: support proto3 map fields #8

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Conversation

dylan-bourque
Copy link
Collaborator

@dylan-bourque dylan-bourque commented Apr 11, 2022

added a new EncodeMapEntryHeader() function to Encoder
extended codegen templates to handle "message" fields that are actually map entry values
added new AllTheMaps message types in examples for all 3 runtimes
added bidirectional validation tests for messages containing maps
regenerated all examples
update test Make target to test sub-packages in examples/

resolves #3

@dylan-bourque dylan-bourque self-assigned this Apr 11, 2022
Copy link

@wmorgan6796 wmorgan6796 left a comment

Choose a reason for hiding this comment

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

This looks good to me, unsure completely though as grokking the templates is painful

added a new `EncodeMapEntryHeader()` function to `Encoder`
extended codegen templates to handle "message" fields that are actually map entry values
added new `AllTheMaps` message types in examples for all 3 runtimes
added bidirectional validation tests for messages containing maps
regenerated all examples
update `test` Make target to test sub-packages in `examples/`

Issue: #3
@redhatrises redhatrises merged commit 336ffbc into main Apr 12, 2022
@redhatrises redhatrises deleted the feat/support-proto3-map-fields branch April 12, 2022 15:20
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.

Need support for encoding and decoding proto3 map fields
3 participants