You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A schema with a union of record types internally serializes to a WrappedUnion type. When passing an object, which conforms to the Avro schema, the library will throw an error, because of the ambiguity.
A schema with a union of record types internally serializes to a
WrappedUnion
type. When passing an object, which conforms to the Avro schema, the library will throw an error, because of the ambiguity.Pseudo code would be something like:
Avro schema:
The following json will throw, even though it is valid:
The way to work around this is include the type as a key on the level above, i.e. this will not throw:
However this is not a 1-to-1 mapping of the actual avro schema.
If this is not considered an issue, I think at least it should be documented (if it isn't already).
The text was updated successfully, but these errors were encountered: