Smart handling of references in avro parser #4182
Closed
janvyhnanek
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
While I agree this functionality would be interesting, is it actually possible to do in the Apache Avro specification? I mean, forgetting about Registry - is it possible to do e.g. locally? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
currently it is only possible to configure avro parser to handle complex types either as references registered as separate schemas or as types defined in the same schema. But usually you want to share only some complex types between schemas and you don't want to register all complex types as separate schemas which might be quite numberous. This is the reason why it is almost imposible to use references to other schemas practically in any case.
It would be useful to enable behaviour known in other descriptors like openapi or xsd - so that you can either import a complex type or define it locally. It might be a bit tricky to implement such avro parser since there is no explicit construction for importing another schema in avro. Avro parser would probably have to interpret type as a reference to another schema only if it is not defined nowhere in local avro schema.
This is followup for issue: #3640
Beta Was this translation helpful? Give feedback.
All reactions