{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://hose-use.local/specs/hose-close-api/schemas/workflow-chooses.schema.json", "title": "Workflow chooses response", "description": "PUT /api/easo/pipelines/{id}/chooses 的响应 data。请求无 body;服务端按当前 pipeline 每个任务节点重新生成 choose 选择器树。", "x-source": [ "code-derived: src/domains/platform/workflow/transport/pipeline/api.ts:68", "reference: _tmp-captured/raw/PUT-api-easo-pipelines-id-chooses.json" ], "type": "array", "items": { "type": "object", "required": ["key", "label", "choose"], "properties": { "key": { "type": "string", "description": "任务节点 name。" }, "label": { "type": "string", "description": "节点类型显示名。" }, "displayName": { "type": ["string", "null"] }, "choose": { "$ref": "#/$defs/ChooseNode" } }, "additionalProperties": true }, "$defs": { "ChooseNode": { "type": "object", "description": "选择器节点。可以是空对象 {}。", "properties": { "tags": { "type": "array", "items": { "type": "string" } }, "items": { "type": "array", "items": { "$ref": "#/$defs/ChooseItem" } }, "rawType": { "type": "string" }, "type": { "type": "string" } }, "additionalProperties": true }, "ChooseItem": { "type": "object", "required": ["label", "code"], "properties": { "label": { "type": "string" }, "code": { "type": "string", "description": "字段路径/表达式,例如 $status、$this、0、E_xxx_name、yyyy-MM-dd。" }, "rawType": { "type": "string" }, "type": { "type": "string" }, "thirdId": { "type": "string" }, "extra": { "type": "string" }, "subChoose": { "$ref": "#/$defs/ChooseNode" } }, "additionalProperties": true } } }