-
Notifications
You must be signed in to change notification settings - Fork 85
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
unions with different type order panic #166
Comments
Hey @rgalus, thanks for the very detailed and clear bug report! This was pretty simple to resolve but it involved changing the name of the type generated for unions containing null, so I've cut a new major release (v9) to reflect that breaking change. Let me know if you run into any more issues :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue happened when migrating from v7 to v8. Looks like when 2 fields has same union but with different order in the schema it returns an error.
Schema:
Fixtures:
Returns an error:
Test that reproduce issue:
https://github.com/rgalus/gogen-avro/commit/b284c619deaa93ff8f63730d9c1bda3249b672f9
The text was updated successfully, but these errors were encountered: