mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #533 from pypeclub/feature/schema_type_represent_one_schema
Schema type represents one schema
This commit is contained in:
commit
5f87cbdeb2
4 changed files with 20 additions and 19 deletions
|
|
@ -27,10 +27,7 @@
|
|||
```
|
||||
{
|
||||
"type": "schema",
|
||||
"children": [
|
||||
"my_schema_name",
|
||||
"my_other_schema_name"
|
||||
]
|
||||
"name": "my_schema_name"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
"children": [
|
||||
{
|
||||
"type": "schema",
|
||||
"children": [
|
||||
"1_plugins_gui_schema"
|
||||
]
|
||||
"name": "1_plugins_gui_schema"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,12 +7,16 @@
|
|||
"key": "global",
|
||||
"children": [{
|
||||
"type": "schema",
|
||||
"children": [
|
||||
"1_tray_items",
|
||||
"1_applications_gui_schema",
|
||||
"1_tools_gui_schema",
|
||||
"1_intents_gui_schema"
|
||||
]
|
||||
"name": "1_tray_items"
|
||||
}, {
|
||||
"type": "schema",
|
||||
"name": "1_applications_gui_schema"
|
||||
}, {
|
||||
"type": "schema",
|
||||
"name": "1_tools_gui_schema"
|
||||
}, {
|
||||
"type": "schema",
|
||||
"name": "1_intents_gui_schema"
|
||||
}]
|
||||
}, {
|
||||
"type": "dict-invisible",
|
||||
|
|
@ -29,6 +33,9 @@
|
|||
"label": "Muster - Templates mapping",
|
||||
"is_file": true
|
||||
}]
|
||||
}, {
|
||||
"type": "schema",
|
||||
"name": "1_examples"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,12 +69,11 @@ def _fill_inner_schemas(schema_data, schema_collection):
|
|||
new_children.append(new_child)
|
||||
continue
|
||||
|
||||
for schema_name in child["children"]:
|
||||
new_child = _fill_inner_schemas(
|
||||
schema_collection[schema_name],
|
||||
schema_collection
|
||||
)
|
||||
new_children.append(new_child)
|
||||
new_child = _fill_inner_schemas(
|
||||
schema_collection[child["name"]],
|
||||
schema_collection
|
||||
)
|
||||
new_children.append(new_child)
|
||||
|
||||
schema_data["children"] = new_children
|
||||
return schema_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue