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
Fixed Data.Avro.Schema.extractBindings. #62
Fixed Data.Avro.Schema.extractBindings. #62
Conversation
The old implementation had some odd bugs with nested type definitions, including missing types defined inside arrays and maps. This PR has a new implementation of extractBindings that fixes all the problems as well as a test case which covers a bunch of edge cases for extracting types from a schema.
This addresses #61. |
Assuming this implementation is actually correct—I believe it is—I recommend back-porting this to older versions of the package with bug fix releases (ie |
Thanks! |
It's not ideal. There have been some breaking changes recently, so upgrading isn't entirely trivial—I know it would require some extra updates/refactoring on one of my projects at work, for example. At the same time, the fix is pretty self-contained, so back-porting it should be straightforward. |
OK, I'll try to find time to do it this weekend. |
I looked at versions |
@AlexeyRaga sorry, I didn't explain the full context here.
By the way, I'm happy to write the code for fixing |
@TikhonJelvis I have created branches If you make PRs into these branches then we'll be able to release patched versions for 0.3.4 and 0.3.5 |
@AlexeyRaga Awesome, thanks! I opened PRs against |
The old implementation had some odd bugs with nested type definitions, including missing types defined inside arrays and maps. This PR has a new implementation of extractBindings that fixes all the problems as well as a test case which covers a bunch of edge cases for extracting types from a schema.