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

Correctly encode and decode wrapper for Avro Union #659

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

pablf
Copy link
Member

@pablf pablf commented Feb 1, 2024

/claim #608

The problem was that a Schema corresponding to an Avro Union will get wrapped in an Avro Record to avoid two nested Avro Unions. So this should fix the problem for the cases when Optional, Either or Enum is wrapping one another (and further nesting).

Also, I think that the test suite for the Avro codec need further work. Changing the current test suite to cover all cases using generators, like in the other codecs, might uncover some bugs.

@pablf pablf requested a review from a team as a code owner February 1, 2024 22:14
@pablf pablf changed the title Correctly encode and decode wrapper for union Correctly encode and decode wrapper for Avro Union Feb 1, 2024
@jdegoes jdegoes merged commit 8bbf1ab into zio:main Feb 2, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants