From dc493fb2bd0f98d55dea4f61da92dd0c5acece9a Mon Sep 17 00:00:00 2001 From: Taku Kodama <79110363+risu729@users.noreply.github.com> Date: Sat, 5 Sep 2026 06:56:42 +0900 Subject: [PATCH] fix(schema): allow structured task array entries Entire-Checkpoint: 01M1Q6S3K0EN2GFF2AH4XK10G1 --- schema/mise-task.json | 101 +++++++++++++++++++++--------------------- schema/mise.json | 5 +-- 2 files changed, 52 insertions(+), 54 deletions(-) diff --git a/schema/mise-task.json b/schema/mise-task.json index ba74e96c73..b799a1580d 100644 --- a/schema/mise-task.json +++ b/schema/mise-task.json @@ -15,10 +15,9 @@ "type": "string" }, { - "description": "script to run", + "description": "scripts or task references to run", "items": { - "description": "script to run", - "type": "string" + "$ref": "#/$defs/task_run_entry" }, "type": "array" }, @@ -41,6 +40,54 @@ } ] }, + "task_run_entry": { + "oneOf": [ + { + "description": "script to run", + "type": "string" + }, + { + "type": "object", + "unevaluatedProperties": false, + "properties": { + "task": { + "description": "single task name to run", + "type": "string" + }, + "args": { + "description": "arguments to pass to the task", + "type": "array", + "items": { + "type": "string" + } + }, + "env": { + "description": "environment variables to set for the task", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": ["task"] + }, + { + "type": "object", + "unevaluatedProperties": false, + "properties": { + "tasks": { + "description": "parallel task group to run", + "items": { + "description": "task name and args", + "type": "string" + }, + "type": "array" + } + }, + "required": ["tasks"] + } + ] + }, "task_props": { "description": "common task properties", "properties": { @@ -939,54 +986,6 @@ } ] }, - "task_run_entry": { - "oneOf": [ - { - "description": "script to run", - "type": "string" - }, - { - "type": "object", - "unevaluatedProperties": false, - "properties": { - "task": { - "description": "single task name to run", - "type": "string" - }, - "args": { - "description": "arguments to pass to the task", - "type": "array", - "items": { - "type": "string" - } - }, - "env": { - "description": "environment variables to set for the task", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "required": ["task"] - }, - { - "type": "object", - "unevaluatedProperties": false, - "properties": { - "tasks": { - "description": "parallel task group to run", - "items": { - "description": "task name and args", - "type": "string" - }, - "type": "array" - } - }, - "required": ["tasks"] - } - ] - }, "task_dependency_item": { "description": "task name and args", "oneOf": [ diff --git a/schema/mise.json b/schema/mise.json index 0a59dead0c..b51471d8d7 100644 --- a/schema/mise.json +++ b/schema/mise.json @@ -2261,10 +2261,9 @@ "type": "string" }, { - "description": "script to run", + "description": "scripts or task references to run", "items": { - "description": "script to run", - "type": "string" + "$ref": "#/$defs/task_run_entry" }, "type": "array" },