mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added example schema for reference
This commit is contained in:
parent
c98aafea8e
commit
6c63bc048f
1 changed files with 46 additions and 0 deletions
|
|
@ -24,6 +24,52 @@ from .exceptions import (
|
|||
)
|
||||
|
||||
|
||||
example_schema = {
|
||||
"type": "dict-conditional",
|
||||
"key": "KEY",
|
||||
"label": "LABEL",
|
||||
"enum_key": "type",
|
||||
"enum_label": "label",
|
||||
"enum_children": [
|
||||
{
|
||||
"key": "action",
|
||||
"label": "Action",
|
||||
"children": [
|
||||
{
|
||||
"type": "text",
|
||||
"key": "key",
|
||||
"label": "Key"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "label",
|
||||
"label": "Label"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "command",
|
||||
"label": "Comand"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "menu",
|
||||
"label": "Menu",
|
||||
"children": [
|
||||
{
|
||||
"type": "list",
|
||||
"object_type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "separator",
|
||||
"label": "Separator"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
class DictConditionalEntity(ItemEntity):
|
||||
schema_types = ["dict-conditional"]
|
||||
_default_label_wrap = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue