Files
hose-use/specs/hose-close-api/schemas/workflow-chooses.schema.json
T
gitea 4e03c9bcd7 refactor: 将应用数据与工作流统一归入应用平台子模块
建立 applications 的应用模型和查询出口,保留基础及详情投影差异。
下沉 DataLink,将工作流模型、API、编排及执行上下文归回 workflow。
同步 CLI、SDK、生成脚本、测试和活跃文档引用,公开命令与 SDK 名称保持兼容。

验证:943 项测试、类型和版本检查通过;三份生成规范字节一致,README 审计通过。
2026-10-30 16:56:09 +08:00

50 lines
1.9 KiB
JSON

{
"$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/api.ts:151",
"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
}
}
}