Given the following nested object
{
"nestedParent":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
}
}
I need all its properties to be of the nested
type too.
How do I generate a mapping for an unknown number of nested children?
Something functionally equal to:
{
"nestedParent":{
"type":"nested",
"dynamic":"true",
"properties":{
"nestedChild1":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
},
"nestedChild2":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
},
"nestedChild3":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
},
...
}
}
}
I do know the structure of the nested children but I do not know their keys/names.