1
0
mirror of https://github.com/go-task/task.git synced 2025-07-17 01:43:07 +02:00

feat: updated schema.json

This commit is contained in:
Pete Davison
2023-12-30 17:45:03 +00:00
parent b495a6bd0b
commit bff0a0a3d4

View File

@ -252,18 +252,34 @@
"type": ["boolean", "integer", "null", "number", "string", "object", "array"] "type": ["boolean", "integer", "null", "number", "string", "object", "array"]
}, },
{ {
"$ref": "#/definitions/3/dynamic_var" "$ref": "#/definitions/3/var_subkey"
} }
] ]
} }
} }
}, },
"dynamic_var": { "var_subkey": {
"type": "object", "type": "object",
"properties": { "properties": {
"sh": { "sh": {
"type": "string", "type": "string",
"description": "The value will be treated as a command and the output assigned" "description": "The value will be treated as a command and the output assigned to the variable"
},
"ref": {
"type": "string",
"description": "The value will be used to lookup the value of another variable which will then be assigned to this variable"
},
"map": {
"type": "object",
"description": "The value will be treated as a literal map type and stored in the variable"
},
"json": {
"type": "string",
"description": "The value will parsed as a JSON string and stored in the variable"
},
"yaml": {
"type": "string",
"description": "The value will parsed as a YAML string and stored in the variable"
}, },
"additionalProperties": false "additionalProperties": false
} }