Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.7.7
-
None
-
None
Description
The Python Avro libraries don't actually have a proper JSON decoder or encoder, because they don't handle the type-hinting for unions properly.
The Python avro.io library should provide a pair of StrictJsonEncoder,StrictJsonDecoder} classes that correctly include (and decode) the type hints when the schema expects a union.
Jonathan Coveney raised this concern on the Avro User mailing list.