You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2009/12/23 16:20:29 UTC
[jira] Created: (AVRO-265) Protocol namespace always written out in
toJson
Protocol namespace always written out in toJson
-----------------------------------------------
Key: AVRO-265
URL: https://issues.apache.org/jira/browse/AVRO-265
Project: Avro
Issue Type: Bug
Components: java
Affects Versions: 1.2.0
Reporter: Todd Lipcon
The javadoc for Protocol indicates that namespaces are optional. However, toJson() always prints it out. If no namespace is set, it generates "namespace": null in the JSON.
Not sure whether namespaces are in fact required, or if it should just not output it when null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-265) Protocol namespace always written out
in toJson
Posted by "Jeff Hammerbacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794112#action_12794112 ]
Jeff Hammerbacher commented on AVRO-265:
----------------------------------------
FWIW, we don't write out namespace in Python if it's not set.
> Protocol namespace always written out in toJson
> -----------------------------------------------
>
> Key: AVRO-265
> URL: https://issues.apache.org/jira/browse/AVRO-265
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.2.0
> Reporter: Todd Lipcon
>
> The javadoc for Protocol indicates that namespaces are optional. However, toJson() always prints it out. If no namespace is set, it generates "namespace": null in the JSON.
> Not sure whether namespaces are in fact required, or if it should just not output it when null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-265) Protocol namespace always written out
in toJson
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795169#action_12795169 ]
Doug Cutting commented on AVRO-265:
-----------------------------------
My preference might be to make namespaces required. Is that too onerous?
> Protocol namespace always written out in toJson
> -----------------------------------------------
>
> Key: AVRO-265
> URL: https://issues.apache.org/jira/browse/AVRO-265
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.2.0
> Reporter: Todd Lipcon
>
> The javadoc for Protocol indicates that namespaces are optional. However, toJson() always prints it out. If no namespace is set, it generates "namespace": null in the JSON.
> Not sure whether namespaces are in fact required, or if it should just not output it when null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.