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. Kofoed <[email protected]> a écrit : > If I use the following schema: > { "name":"object","type":["null",{ > "name":"objectRecord","type":"record","fields":[{ "name": > objectDetails","type": {"name": "objectDetails","type": "record","fields": > [{ "name": additionalInfo","type": {"type": "array","items": {"name": > "additionalInfo","type": "record","fields": [{"name": "name","type": > "string"},{"name": > "value","type":["null","string","int","boolean"]}]}}}]}},{ > name":"objectIdentification","type":["null",{ > "name":"objectIdentificationRecord","type":"record","fields":[{"name":"objectId","type":["null","int"]},{"name":"objectType","type":["null","string"]}]}]}]}]} > > Is is almost there. All I'm missing is the value for the tagX fields. > > Please help > > regards > Jens M. Kofoed >
