Suport for data attributes that can be of different types #129
Answered
by
samuelramos
samuelramos
asked this question in
Q&A
-
|
Hi, This is something that started from AVRO contract need. Considering that in AVRO a field can be a union of one or even more complex types, how that could be represented on the YAML data contract? Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
samuelramos
Aug 8, 2025
Replies: 1 comment 1 reply
-
|
Hi @samuelramos, There is just limited support for union types:
Supporting real union types, as well as JSON Schema's Same for Bitol ODCS. |
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

Hmm, Thanks for the quick reply @jochenchrist
On AVRO it behaves more or less like a JSON
oneof. A record can have one of multiple possible types. The message then specifies the name of the type to consider.I have a fork of repo where I'm having some tweaks to write/read the avro. And I was thinking about a data contract customization to try accomodate such scenario.