Re: Need help to create avro schema for arrays with tags

2021-08-10 Thread Mike Thomsen
You'll probably want to go more like this: { "name": "objectDetails", "type": { "type": "array", "items": { "name": "AdditionalInfoRecord", "type": "record", "fields": [ { "name": "name", "type": "string" }, { "name": "value", "type": "string" }

Re: Need help to create avro schema for arrays with tags

2021-07-28 Thread Jens M. Kofoed
The problem is with the XML Reader converting xml tags and field contents at the same time. I tried to use the example: Tags with Attributes from the XML Reader additional details help page:

Re: Need help to create avro schema for arrays with tags

2021-07-28 Thread Etienne Jouvin
Hello. What you can do, is to write the expected JSON. Then do a process with convert record, with a JSON tree reader and a writer. On the writer, specify that you want to write the schema in property. Like this, yo uwil have the wanted schema. Etienne Le mer. 28 juil. 2021 à 14:51, Jens M.