From e16b535c91ef549d9ab51aa48570beb60c1a767a Mon Sep 17 00:00:00 2001 From: Calvin McLean Date: Sun, 30 Jul 2023 20:51:26 -0700 Subject: [PATCH] fix: defer keyword in json schema --- docs/static/schema.json | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/static/schema.json b/docs/static/schema.json index 70d49a2847..72c2d0a5fb 100644 --- a/docs/static/schema.json +++ b/docs/static/schema.json @@ -208,6 +208,9 @@ { "$ref": "#/definitions/3/task_call" }, + { + "$ref": "#/definitions/3/defer_call" + }, { "$ref": "#/definitions/3/for_call" } @@ -308,10 +311,6 @@ "description": "Prevent command from aborting the execution of task even after receiving a status code of 1", "type": "boolean" }, - "defer": { - "description": "", - "type": "boolean" - }, "platforms": { "description": "Specifies which platforms the command should be run on.", "type": "array", @@ -323,6 +322,17 @@ "additionalProperties": false, "required": ["cmd"] }, + "defer_call": { + "type": "object", + "properties": { + "defer": { + "description": "Run a command when the task completes. This command will run even when the task fails", + "type": "string" + } + }, + "additionalProperties": false, + "required": ["defer"] + }, "for_call": { "type": "object", "properties": {