From 00783ab9591b66edd909d4fb044e6a7a9e5f04b5 Mon Sep 17 00:00:00 2001 From: Eric Dahlvang Date: Fri, 19 Feb 2021 13:42:15 -0800 Subject: [PATCH] Add policies to v1 component schema (#6210) --- schemas/component/v1.0/component.schema | 34 ++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/schemas/component/v1.0/component.schema b/schemas/component/v1.0/component.schema index 9b8a9c74a5..84e58aef6e 100644 --- a/schemas/component/v1.0/component.schema +++ b/schemas/component/v1.0/component.schema @@ -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 @@ ] } } -} \ No newline at end of file +}