mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
feat: option to ensure variable is within the list of values (#1827)
This commit is contained in:
@@ -558,7 +558,19 @@
|
||||
"description": "List of variables that must be defined for the task to run",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"oneOf": [
|
||||
{ "type": "string" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"enum": { "type": "array",
|
||||
"items": { "type": "string" } }
|
||||
},
|
||||
"required": ["name", "enum"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user