|
233 | 233 | "$ref": "#/definitions/defer_cmd_call" |
234 | 234 | }, |
235 | 235 | { |
236 | | - "$ref": "#/definitions/for_cmds_call" |
| 236 | + "$ref": "#/definitions/for_cmd_call" |
| 237 | + }, |
| 238 | + { |
| 239 | + "$ref": "#/definitions/for_task_call" |
237 | 240 | } |
238 | 241 | ] |
239 | 242 | }, |
|
401 | 404 | "additionalProperties": false, |
402 | 405 | "required": ["defer"] |
403 | 406 | }, |
404 | | - "for_cmds_call": { |
| 407 | + "for_cmd_call": { |
405 | 408 | "type": "object", |
406 | 409 | "properties": { |
407 | 410 | "for": { |
|
415 | 418 | "description": "Silent mode disables echoing of command before Task runs it", |
416 | 419 | "type": "boolean" |
417 | 420 | }, |
| 421 | + "platforms": { |
| 422 | + "description": "Specifies which platforms the command should be run on.", |
| 423 | + "$ref": "#/definitions/platforms" |
| 424 | + } |
| 425 | + }, |
| 426 | + "additionalProperties": false, |
| 427 | + "required": ["for", "cmd"] |
| 428 | + }, |
| 429 | + "for_task_call": { |
| 430 | + "type": "object", |
| 431 | + "properties": { |
| 432 | + "for": { |
| 433 | + "$ref": "#/definitions/for" |
| 434 | + }, |
418 | 435 | "task": { |
419 | 436 | "description": "Task to run", |
420 | 437 | "type": "string" |
|
423 | 440 | "description": "Values passed to the task called", |
424 | 441 | "$ref": "#/definitions/vars" |
425 | 442 | }, |
| 443 | + "silent": { |
| 444 | + "description": "Silent mode disables echoing of command before Task runs it", |
| 445 | + "type": "boolean" |
| 446 | + }, |
426 | 447 | "platforms": { |
427 | 448 | "description": "Specifies which platforms the command should be run on.", |
428 | 449 | "$ref": "#/definitions/platforms" |
429 | 450 | } |
430 | 451 | }, |
431 | | - "oneOf": [{ "required": ["cmd"] }, { "required": ["task"] }], |
432 | 452 | "additionalProperties": false, |
433 | | - "required": ["for"] |
| 453 | + "required": ["for", "task"] |
434 | 454 | }, |
435 | 455 | "for_deps_call": { |
436 | 456 | "type": "object", |
|
451 | 471 | "$ref": "#/definitions/vars" |
452 | 472 | } |
453 | 473 | }, |
454 | | - "oneOf": [{ "required": ["cmd"] }, { "required": ["task"] }], |
455 | 474 | "additionalProperties": false, |
456 | | - "required": ["for"] |
| 475 | + "required": ["for", "task"] |
457 | 476 | }, |
458 | 477 | "for": { |
459 | 478 | "anyOf": [ |
|
475 | 494 | "description": "A list of values to iterate over", |
476 | 495 | "type": "array", |
477 | 496 | "items": { |
478 | | - "type": "string" |
| 497 | + "type": ["string", "number"] |
479 | 498 | } |
480 | 499 | }, |
481 | 500 | "for_attribute": { |
|
0 commit comments