[KAFKA-270] Avro schema validation doesn't validate Union types Created: 10/Dec/21  Updated: 28/Oct/23  Resolved: 16/Dec/21

Status: Closed
Project: Kafka Connector
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Bug Priority: Minor - P4
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Case:

 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"]}]
     }]
}



 Comments   
Comment by Githook User [ 16/Dec/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Ensure Union types are validated correctly. (#94)

KAFKA-270
Branch: master
https://github.com/mongodb/mongo-kafka/commit/0cad286a079d67887957408e000f552932000e51

Generated at Thu Feb 08 09:05:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.