Mark Payne created NIFI-4671:
--------------------------------

             Summary: When parsing Avro schema, all fields that are not 'top 
level' are marked as nullable
                 Key: NIFI-4671
                 URL: https://issues.apache.org/jira/browse/NIFI-4671
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Mark Payne
            Assignee: Mark Payne
             Fix For: 1.5.0


>From the mailing list, there is an issue with ValidateRecord considering 
>invalid JSON records to be valid when it is missing an 'inner field'. Given 
>the following schema:

{code}
{
  "name": "aRecord",
  "type": "record",
  "namespace": "a",
  "fields": [
    {
      "name": "a",
      "type": {
        "name": "bRecord",
        "type":"record",
        "fields": [
          { "name": "b", "type": "string"}
        ]
      }
    }

  ]
}
{code}

ValidateRecord will indicate that the following record is valid:

{code}
{"a":{}}
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to