Hello, I’m trying to re-arrange the structure of my schemas by nesting some properties for better categorization. I’m running into an issue where certain properties are ignored (such as labels). As if it is generating its own custom schema.
Running the schemas through the material renderers, I get the following output:
You can see that my enabled_templates and one slot template labels from ui-schema are ignored.
Any idea what is going on?
schema.json
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"surf": {
"type": "object",
"properties": {
"enabled_templates": {
"type": "object",
"properties": {
"one_slot_template": {
"type": "boolean"
}
}
}
}
}
}
}
ui_schema.json:
{
"type": "VerticalLayout",
"elements": [
{
"type": "Group",
"elements": [
{
"type": "Input",
"scope": "#/properties/name",
"label": "Name",
"options": {
"placeholder": "concept_x"
}
}
]
},
{
"type": "Control",
"scope": "#/properties/surf",
"label": "surf",
"elements": [
{
"type": "Control",
"scope": "#/properties/enabled_templates",
"title": "enabled_templates",
"elements": [
{
"type": "Switch",
"title": "one slot template",
"scope": "#/properties/one_slot_template"
}
]
}
]
}
]
}
