Closed thedumbterminal closed 1 year ago
Hi @thedumbterminal. The items
key in an array's Avro schema expects a type (not a record field). This should work:
{
"doc": "Array example",
"fields": [
{
"doc": "example array",
"name": "list",
"type": {
"items": ["null", "string"],
"type": "array"
}
}
],
"name": "myschema_json",
"namespace": "com.yourdomain.schemas",
"type": "record"
}
Hi, I'm trying to generate an array which contains null items, such as:
But receive the error:
Do I need to create a named type here?