Add Action Policy definitions to component schema (#6208)
* Add Action Policy definitions to component schema thanks @chrimc62 ! * Change mustinclude to requiresAction * requiresAction to 'const' * requiresAction to requiresKind * Remove 'type' from enum policies * Change $policies definition to an object
This commit is contained in:
Родитель
a6ed2df73a
Коммит
dcf54a7e97
|
@ -9,6 +9,38 @@
|
|||
},
|
||||
{
|
||||
"properties": {
|
||||
"$policies": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"interactive": {
|
||||
"title": "Interactive",
|
||||
"description": "Dialog will wait for input.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"nonInteractive": {
|
||||
"title": "Non-interactive",
|
||||
"description": "No child dialogs can wait for input.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"lastAction": {
|
||||
"title": "Last Action",
|
||||
"description": "Dialog must be the last action in a list of actions.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"requiresKind": {
|
||||
"title": "Requires Kind",
|
||||
"description": "There must be a child dialog of one of the included kinds or an extension of those kinds.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"$role": {
|
||||
"title": "$role",
|
||||
"description": "Defines the roles played in the dialog schema one of [expression|interface|implements($kind)|extends($kind)].",
|
||||
|
@ -271,4 +303,4 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче