Hi,
I have to save json data to a mongodb database. I use PutMongoRecord
processor.
My flow file has the following form :
[{"name":"aaaa", "data":[1,2,3]},{"name":"bbbb", "data":[1,2,3]}]
In my processor properties I set a JsonTreeRead service for valadating json
data.
I could validate simple data ("name":"aaa") but I can't validate array.
Here is my schema :
{
"namespace": "nifi",
"name": "test",
"type": "record",
"fields": [
{ "name": "nom", "type": "string" },
{
"name":"data", "type":{
"type":"array",
"items":"string"
}
}
]
}
What is the schema syntax for array type ?
Why is the schema validation mandatory ? Can I set PutMongoRecord processor
without that validation ?
Thanks,
Yves
(Embedded image moved to file: pic18716.jpg)
Yves HAMEL
Direction Digital & Systèmes d’Information Groupe
LM_DATA
MACIF - 2 et 4, rue Pied de Fond - 79037 Niort cedex 9
Tél. : +33 (0)5 49 09 36 06
Email : [email protected] / Pré Doyen 2 – bureau 999
www.macif.fr - Appli présente sur Google Play Store & Apple Store
(Embedded image moved to file: pic19718.jpg)