You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Adam Cataldo (JIRA)" <ji...@apache.org> on 2013/12/03 12:59:35 UTC

[jira] [Created] (AVRO-1408) JsonDecoder fails when fields with default values are omitted

Adam Cataldo created AVRO-1408:
----------------------------------

             Summary: JsonDecoder fails when fields with default values are omitted
                 Key: AVRO-1408
                 URL: https://issues.apache.org/jira/browse/AVRO-1408
             Project: Avro
          Issue Type: Bug
    Affects Versions: 1.7.5, 1.7.4
            Reporter: Adam Cataldo


Start with an IDL like

protocol Foo {
  record Bar {
    int x;
    int y = 0;
  }
}

Then use JsonDecoder to deserialize:

{"x":30}

Bug: this fails because y is not provided.



--
This message was sent by Atlassian JIRA
(v6.1#6144)