[
https://issues.apache.org/jira/browse/AVRO-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oscar Westra van Holthe - Kind updated AVRO-265:
------------------------------------------------
Status: Patch Available (was: Open)
Added PR to remove the namespace attribute if null.
This keeps functionality as-is (as it has not changed in years), but treats
this issue as cosmetic (and fixes it).
> Protocol namespace always written out in toJson
> -----------------------------------------------
>
> Key: AVRO-265
> URL: https://issues.apache.org/jira/browse/AVRO-265
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.2.0
> Reporter: Todd Lipcon
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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 was sent by Atlassian Jira
(v8.20.1#820001)