You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Nigel Longton (JIRA)" <ji...@apache.org> on 2014/03/13 22:11:42 UTC
[jira] [Created] (AVRO-1481) Create a new pair of datum
reader/writer that set/omit default schema values
Nigel Longton created AVRO-1481:
-----------------------------------
Summary: Create a new pair of datum reader/writer that set/omit default schema values
Key: AVRO-1481
URL: https://issues.apache.org/jira/browse/AVRO-1481
Project: Avro
Issue Type: Improvement
Components: java
Reporter: Nigel Longton
Priority: Minor
To create simpler json for consumption by non avro clients I created a reader/writer pair that rather than use the union [null, type] model used a default null model. When the writer creates json if the field value equals the default the field is not written to the stream. Likewise when read, a missing field with a default is set to the default. If you like these please include them in the next release (code attached as soon as I work out how). Am working on a csharp version as well.
--
This message was sent by Atlassian JIRA
(v6.2#6252)