You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2013/02/14 23:21:13 UTC
[jira] [Resolved] (AVRO-1255) Python schema (message, protocol)
to_json names argument should be optional
[ https://issues.apache.org/jira/browse/AVRO-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting resolved AVRO-1255.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.7.4
Assignee: Jeremy Kahn
I committed this. Thanks, Jeremy!
> Python schema (message, protocol) to_json names argument should be optional
> ---------------------------------------------------------------------------
>
> Key: AVRO-1255
> URL: https://issues.apache.org/jira/browse/AVRO-1255
> Project: Avro
> Issue Type: Improvement
> Components: python
> Affects Versions: 1.7.3
> Reporter: Jeremy Kahn
> Assignee: Jeremy Kahn
> Priority: Minor
> Labels: patch
> Fix For: 1.7.4
>
> Attachments: avro-1255-b.patch, avro-1255.patch
>
>
> The {{avro.protocol.Protocol}}, {{avro.protocol.Message}}, and various classes in {{avro.schema}} all support a {{to_json}} method which renders the data in Python generics (easily renderable to json).
> These methods all take a required {{names}} argument (of type {{avro.schema.Names}}) which stores state representing what types have already been rendered.
> For debugging -- and for other uses of the schema -- it is helpful if the {{names}} argument is optional. When it is not provided, each method should construct an empty {{schema.Names}} object internally. {{to_json}} thus can be invoked without argument to get the relevant rendering of the current schema in isolation.
> Patch to be attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira