added example schema for reference

This commit is contained in:
iLLiCiTiT 2021-06-28 17:35:50 +02:00
parent c98aafea8e
commit 6c63bc048f

View file

@ -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 = {