Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-270

Avro schema validation doesn't validate Union types

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.7.0
    • None
    • None
    • None

    Description

      The following code would not trigger the validation exception for the unsupported enum type:

      {"type": "record", "name": "unionTest1",
        "fields": [{"name": "unionField",
           "type": ["null", {"type": "enum", "symbols" : ["ONE", "TWO", "THREE"]}]
           }]
      }
      

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: