I'm trying to use the following schema for reading xml file with XMLReader service:
{
"name": "test",
"namespace": "nifi",
"type": "record",
"fields": [
{
"name": "root",
"type": {
"name": "RecordForTag",
"type": "record",
"fields": [
{
"name": "nested1",
"type": {
"name": "RecordForTag",
"type": "record",
"fields": [
{
"name": "nested1",
"type": "string"
}
]
}
}
]
}
}
]
}
according to examples in .apache.nifi/nifi-record-serialization-services-nar/1.7.0/.apache.nifi.xml.XMLReader/additionalDetails.html
But got the error:
Not a valid Avro Schema Cant redefine nifi.RecordForTag
What am I doing wrong?