- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Decoding of oneof fields only works for the last specified field #171
Comments
👋 Thanks for reporting it, I'll have a look! |
I has made pull request, in my case this fix worked. The project's tests were also successful. |
The root cause is not the decoding, but |
The fix is released in |
Thanks! That has solved the problem I was having :) |
I am finding that only the last specified field can be successfully decoded for a
oneof
field.For example, the assertion in this round-trip test fails:
The output from the
print
statement is:If the example is modified so it sets and asserts against the
bar
field, then it works fine.The text was updated successfully, but these errors were encountered: