mirror of
https://github.com/go-task/task.git
synced 2025-12-16 19:57:43 +01:00
fix(schema): workaround IntelliJ JSON Schema validation bug (#2576)
This commit is contained in:
@@ -48,6 +48,8 @@
|
|||||||
(e.g., URLs or namespaced functions) (#2101, #2573 by @vmaerten).
|
(e.g., URLs or namespaced functions) (#2101, #2573 by @vmaerten).
|
||||||
- The `--yes` flag is now accessible in templates via the new `CLI_ASSUME_YES`
|
- The `--yes` flag is now accessible in templates via the new `CLI_ASSUME_YES`
|
||||||
variable (#2577, #2479 by @semihbkgr).
|
variable (#2577, #2479 by @semihbkgr).
|
||||||
|
- Fixed false positive "property 'for' is not allowed" warnings in IntelliJ when
|
||||||
|
using `for` loops in Taskfiles (#2576 by @vmaerten).
|
||||||
|
|
||||||
## v3.45.5 - 2025-11-11
|
## v3.45.5 - 2025-11-11
|
||||||
|
|
||||||
|
|||||||
@@ -233,7 +233,10 @@
|
|||||||
"$ref": "#/definitions/defer_cmd_call"
|
"$ref": "#/definitions/defer_cmd_call"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/for_cmds_call"
|
"$ref": "#/definitions/for_cmd_call"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/for_task_call"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -401,7 +404,7 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["defer"]
|
"required": ["defer"]
|
||||||
},
|
},
|
||||||
"for_cmds_call": {
|
"for_cmd_call": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"for": {
|
"for": {
|
||||||
@@ -415,6 +418,20 @@
|
|||||||
"description": "Silent mode disables echoing of command before Task runs it",
|
"description": "Silent mode disables echoing of command before Task runs it",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"platforms": {
|
||||||
|
"description": "Specifies which platforms the command should be run on.",
|
||||||
|
"$ref": "#/definitions/platforms"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": ["for", "cmd"]
|
||||||
|
},
|
||||||
|
"for_task_call": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"for": {
|
||||||
|
"$ref": "#/definitions/for"
|
||||||
|
},
|
||||||
"task": {
|
"task": {
|
||||||
"description": "Task to run",
|
"description": "Task to run",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -423,14 +440,17 @@
|
|||||||
"description": "Values passed to the task called",
|
"description": "Values passed to the task called",
|
||||||
"$ref": "#/definitions/vars"
|
"$ref": "#/definitions/vars"
|
||||||
},
|
},
|
||||||
|
"silent": {
|
||||||
|
"description": "Silent mode disables echoing of command before Task runs it",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"platforms": {
|
"platforms": {
|
||||||
"description": "Specifies which platforms the command should be run on.",
|
"description": "Specifies which platforms the command should be run on.",
|
||||||
"$ref": "#/definitions/platforms"
|
"$ref": "#/definitions/platforms"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": [{ "required": ["cmd"] }, { "required": ["task"] }],
|
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["for"]
|
"required": ["for", "task"]
|
||||||
},
|
},
|
||||||
"for_deps_call": {
|
"for_deps_call": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -451,9 +471,8 @@
|
|||||||
"$ref": "#/definitions/vars"
|
"$ref": "#/definitions/vars"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": [{ "required": ["cmd"] }, { "required": ["task"] }],
|
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["for"]
|
"required": ["for", "task"]
|
||||||
},
|
},
|
||||||
"for": {
|
"for": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
@@ -475,7 +494,7 @@
|
|||||||
"description": "A list of values to iterate over",
|
"description": "A list of values to iterate over",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": ["string", "number"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"for_attribute": {
|
"for_attribute": {
|
||||||
|
|||||||
Reference in New Issue
Block a user