From f844a2458f6c92023e8868777e1a59e9695df604 Mon Sep 17 00:00:00 2001 From: Mark Roghelia Date: Mon, 8 Feb 2021 17:27:58 -0500 Subject: [PATCH] Update schema for task restrictions (#705) --- tasks.schema.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/tasks.schema.json b/tasks.schema.json index 7591ceb85..414d4157b 100644 --- a/tasks.schema.json +++ b/tasks.schema.json @@ -462,6 +462,40 @@ } } }, + "restrictions": { + "type": "object", + "additionalProperties": false, + "description": "Restrictions on tasks", + "properties": { + "commands": { + "type": "object", + "additionalProperties": false, + "description": "Restrictions on available task commands", + "properties": { + "mode": { + "type": "string", + "enum": [ + "any", + "restricted" + ] + } + } + }, + "settableVariables": { + "type": "object", + "additionalProperties": false, + "description": "Restrictions on which variables can be set via commands", + "properties": { + "allowed": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, "$schema": { "type": "string" }