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 #2

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Conversation

andersfugmann
Copy link
Owner

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.

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.

  - Remove Required/Optional in deserialization
  - re-introduce a basic_opt type to be more explicit about presense of default values
@andersfugmann andersfugmann merged commit e2247b2 into main Feb 13, 2024
4 checks passed
@andersfugmann andersfugmann deleted the andersfugmann/merge_messages branch February 13, 2024 08:38
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.

1 participant