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

Fix marshalling of empty oneOf messages #130

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

howardjohn
Copy link
Contributor

Fixes #61

This seems to pass all tests, but I am not super confident without #129 passing

@howardjohn howardjohn marked this pull request as ready for review March 6, 2024 21:00
Copy link
Member

@vmg vmg left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you!

@vmg vmg merged commit 54814e4 into planetscale:main Mar 8, 2024
2 checks passed
howardjohn added a commit to howardjohn/vtprotobuf that referenced this pull request Apr 8, 2024
planetscale#130 did not correctly
account for the key size impacting the size. This fixes the original PR,
and adds another test case to cover the issue
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.

Marshaling empty message in oneof is incompatible with proto.Marshal
2 participants