Xavier Marc created NIFI-9198:
---------------------------------
Summary: XMLReader : Problem with type in schema text
Key: NIFI-9198
URL: https://issues.apache.org/jira/browse/NIFI-9198
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework, Documentation & Website
Affects Versions: 1.14.0
Reporter: Xavier Marc
Hi,
Firstly i think that the type map not working as mentionned in the
documentation
([https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-record-serialization-services-nar/1.14.0/org.apache.nifi.xml.XMLReader/additionalDetails.html)]
Secondly for records with attributes in an array i can't transform it in JSON
from XML.
Example XML :
<KeyWords>
<Keyword groupe="test1">true</Keyword>
<Keyword groupe="test2">false</Keyword>
</KeyWords>
Example Schema Text :
{
"name": "Keywords",
"type": [ "null", {
"name": "Keywords_record",
"type": "record",
"fields": [
{
"name": "Keyword",
"type": {
"type": "array",
"items": {
"name": "Keyword_array",
"type": "record",
"fields": [
\{"name": "groupe",
"type": ["null", "string"]},
\{"name":
"Keyword_value", "type": ["null", "string"]}
]
}
}
}
]
}]
}
I think it's two bugs but I could be wrong.
Thanks
--
This message was sent by Atlassian Jira
(v8.3.4#803005)