You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Michael A. Smith (Jira)" <ji...@apache.org> on 2019/11/17 02:51:00 UTC

[jira] [Updated] (AVRO-1291) Python library missing strict JSON encode/decode

     [ https://issues.apache.org/jira/browse/AVRO-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael A. Smith updated AVRO-1291:
-----------------------------------
    Resolution: Duplicate
        Status: Resolved  (was: Patch Available)

Closing this as a dupe of the much older AVRO-91. We can bring the patch into that one if it's useful.

> Python library missing strict JSON encode/decode
> ------------------------------------------------
>
>                 Key: AVRO-1291
>                 URL: https://issues.apache.org/jira/browse/AVRO-1291
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.7.7
>            Reporter: Jeremy Kahn
>            Priority: Major
>         Attachments: avro.diff
>
>
> The Python Avro libraries don't actually have a proper JSON decoder or encoder, because they don't handle the [type-hinting for unions|http://avro.apache.org/docs/current/spec.html#json_encoding] 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|http://mail-archives.apache.org/mod_mbox/avro-user/201304.mbox/%3CCAKne9Z6nkYXwb4QzPr4qNyH1o7TnL1674MspgnHuKMuD2imguQ%40mail.gmail.com%3E] on the Avro User mailing list.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)