diff --git a/website/static/schema.json b/website/static/schema.json index 913e0368..9389d04c 100644 --- a/website/static/schema.json +++ b/website/static/schema.json @@ -6,6 +6,12 @@ "env": { "$ref": "#/definitions/vars" }, + "platforms": { + "type": "array", + "items": { + "type": "string" + } + }, "tasks": { "type": "object", "patternProperties": { @@ -179,10 +185,7 @@ }, "platforms": { "description": "Specifies which platforms the task should be run on.", - "type": "array", - "items": { - "type": "string" - } + "$ref": "#/definitions/platforms" }, "requires": { "description": "A list of variables which should be set if this task is to run, if any of these variables are unset the task will error and not run", @@ -341,10 +344,7 @@ }, "platforms": { "description": "Specifies which platforms the command should be run on.", - "type": "array", - "items": { - "type": "string" - } + "$ref": "#/definitions/platforms" } }, "additionalProperties": false, @@ -396,6 +396,10 @@ "vars": { "description": "Values passed to the task called", "$ref": "#/definitions/vars" + }, + "platforms": { + "description": "Specifies which platforms the command should be run on.", + "$ref": "#/definitions/platforms" } }, "oneOf": [