Closed jspaezp closed 8 months ago
Hi! Thanks for raising this issue. We would definitely like to implement this change so if you would like to make a pr go for it!
https://github.com/godatadriven/pydantic-avro/pull/101
Nice! here it goes! @DaanRademaker
Thanks again for your contribution! Feel free to open more issues and pull request if you find more things. Closing issue as the changes have been merged.
Hello there!
I was working with the package and wanted to suggest an improvement on an error message. LMK if you would like a PR for it.
Reproducible example:
(I am aware that here the fix is that x is of type
Any
, but on a real project it took me a while to figure that out.)Desired error
Field X does not have a defined type
/ Type is none for ....Any variant of the error that can point to an un-constrained type AND a field name would be nice.
Fix
pydantic_avro/base.py
:153