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

Implement message merging. #60

Closed
wants to merge 5 commits into from

Conversation

andersfugmann
Copy link
Contributor

@andersfugmann andersfugmann commented Jan 28, 2024

Per spec, if a single field message is received twice in a message the two messages should be merged recursively.
The PR implement this functionality. Closes #57

Tests has been added and the test lib has been extended to verify parsing of multiple message fields as well as verifying full (slow) deserialization by injecting an out of order field at the head of the input buffer (reader)

While developing, a bug handling proto2 required message fields were also identified and fixed.

@andersfugmann andersfugmann requested a review from a team as a code owner January 28, 2024 23:52
@andersfugmann andersfugmann force-pushed the andersfugmann/merge_messages branch 2 times, most recently from e11bb5b to b237307 Compare January 29, 2024 21:18
@andersfugmann
Copy link
Contributor Author

This PR is based on #55 / #59 so it should be merged after these PR's

…generation as well as removing unused arguments.
  - Remove Required/Optional in deserialization
  - re-introduce a basic_opt type to be more explicit about presense of default values
@andersfugmann
Copy link
Contributor Author

Rebased after merging #55

@andersfugmann
Copy link
Contributor Author

Closing as developement has moved to https://github.com/andersfugmann/ocaml-protoc-plugin

@andersfugmann andersfugmann deleted the andersfugmann/merge_messages branch February 25, 2024 23:18
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.

Duplicate message type fields not merged correctly
1 participant