我有一个场景,我需要在这样的命名对象中显示数组:
"actions": {
"singleSelection": [
{
"chartable": false,
"label": ""
}
]
}
我已经使用以下架构完成了它:
"schema": {
"type": "object",
"title": "smart_report",
"properties": {
"actions": {
"title": "Actions",
"type": "object",
"properties": {
"singleSelection": {
"title": "Action: Single selection",
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"properties": {
"field": {
"title": "Field name",
"type": "string"
},
"label": {
"title": "Label",
"type": "string",
"description": "Label will be used for column name."
},
"chartable": {
"title": "Chartable",
"type": "boolean"
}
}
}
}
}
}
}
现在我试图在 from 中的“actions”上设置“notitle”标志并尝试访问“actions”的属性,但它没有按预期工作:
{
"key": "actions",
"notitle": true,
"properties": {
"key": "singleSelection",
"notitle": true,
"startEmpty": true
}
},
我仍然看到“singleSelection”和“stratEmpty”的动作标题也没有设置。