-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Schema reference support #239
Comments
Thanks for you suggestion. Can you provide the final schema using confluent? Would the child field be |
This would also be nice to be supported when going from schemas to python classes.
should generate something like
but gives an error like:
On the fastavro side this is supported by passing in a fully-qualifed name -> schema dictionary to the An additional caveat is that there could be multiple of the same type but with different namespaces. E.g.
and then generating modules would lead to having two classes called |
Hey, thanks for the comment. I will try to work on it. |
Assuming an existing schema like:
When calling Parent.avro_schema(), the full child schema is included in the parent schema. I don't see an option to provide Child as a known schema so Parent would use com.test.Child as the type instead.
For example, if I could call Parent.avro_schema(known_types=[Child]) this would allow using schema references that have been previously registered in platform such as confluent
The text was updated successfully, but these errors were encountered: