1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

fix(json-schema): add missing platforms property to cmds for (#1915)

This commit is contained in:
Dorian Karter 2024-11-15 14:41:54 -06:00 committed by GitHub
parent 6645a1f34c
commit 517bb3fc97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,12 @@
"env": { "env": {
"$ref": "#/definitions/vars" "$ref": "#/definitions/vars"
}, },
"platforms": {
"type": "array",
"items": {
"type": "string"
}
},
"tasks": { "tasks": {
"type": "object", "type": "object",
"patternProperties": { "patternProperties": {
@ -179,10 +185,7 @@
}, },
"platforms": { "platforms": {
"description": "Specifies which platforms the task should be run on.", "description": "Specifies which platforms the task should be run on.",
"type": "array", "$ref": "#/definitions/platforms"
"items": {
"type": "string"
}
}, },
"requires": { "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", "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": { "platforms": {
"description": "Specifies which platforms the command should be run on.", "description": "Specifies which platforms the command should be run on.",
"type": "array", "$ref": "#/definitions/platforms"
"items": {
"type": "string"
}
} }
}, },
"additionalProperties": false, "additionalProperties": false,
@ -396,6 +396,10 @@
"vars": { "vars": {
"description": "Values passed to the task called", "description": "Values passed to the task called",
"$ref": "#/definitions/vars" "$ref": "#/definitions/vars"
},
"platforms": {
"description": "Specifies which platforms the command should be run on.",
"$ref": "#/definitions/platforms"
} }
}, },
"oneOf": [ "oneOf": [