From e35bf22dd39052f7d58d0e027ffc133138a0d2b2 Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Tue, 28 Feb 2023 11:50:26 +0100 Subject: [PATCH] fix: schema for output group (#1005) --- docs/static/schema.json | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/docs/static/schema.json b/docs/static/schema.json index 19b55ee6..0d1d335d 100644 --- a/docs/static/schema.json +++ b/docs/static/schema.json @@ -314,6 +314,27 @@ "run": { "type": "string", "enum": ["always", "once", "when_changed"] + }, + "outputString": { + "type": "string", + "enum": ["interleaved", "prefix", "group"], + "default": "interleaved" + }, + "outputObject": { + "type": "object", + "properties": { + "group": { + "type": "object", + "properties": { + "begin": { + "type": "string" + }, + "end": { + "type": "string" + } + } + } + } } } }, @@ -336,9 +357,10 @@ }, "output": { "description": "Defines how the STDOUT and STDERR are printed when running tasks in parallel. The interleaved output prints lines in real time (default). The group output will print the entire output of a command once, after it finishes, so you won't have live feedback for commands that take a long time to run. The prefix output will prefix every line printed by a command with [task-name] as the prefix, but you can customize the prefix for a command with the prefix: attribute.", - "type": "string", - "enum": ["interleaved", "group", "prefixed"], - "default": "interleaved" + "anyOf": [ + {"$ref": "#/definitions/3/outputString"}, + {"$ref": "#/definitions/3/outputObject"} + ] }, "method": { "description": "Defines which method is used to check the task is up-to-date. (default: checksum)",