给定以下嵌套对象
{
"nestedParent":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
}
}
我也需要它的所有属性都属于该nested
类型。如何为未知数量的嵌套子级生成映射?
功能上等于:
{
"nestedParent":{
"type":"nested",
"dynamic":"true",
"properties":{
"nestedChild1":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
},
"nestedChild2":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
},
"nestedChild3":{
"type":"nested",
"dynamic":"true",
"properties":{
...
}
},
...
}
}
}
我确实知道嵌套子项的结构,但我不知道他们的键/名称。