refactor: outputSchema only accepts inline JSON Schema #325

Merged
xiaomo merged 1 commits from fix/319-validate-schema-only-inline into main 2026-05-18 13:18:18 +00:00
Owner

What

去掉 workflow YAML 里 outputSchema 对 CAS ref 字符串的支持,只接受 inline JSON Schema 对象。

Why

简化。双格式增加复杂度,inline-only 更直观:YAML 里写 schema,uwf workflow put 自动注册。

Changes

  • workflow.tsresolveOutputSchemaRef 只处理 object,移除 string 分支
  • validate.tsisRoleDefinition 去掉 typeof outputSchema === "string" 检查
  • 移除未使用的 isCasRef import

Refs #319

## What 去掉 workflow YAML 里 outputSchema 对 CAS ref 字符串的支持,只接受 inline JSON Schema 对象。 ## Why 简化。双格式增加复杂度,inline-only 更直观:YAML 里写 schema,`uwf workflow put` 自动注册。 ## Changes - `workflow.ts` — `resolveOutputSchemaRef` 只处理 object,移除 string 分支 - `validate.ts` — `isRoleDefinition` 去掉 `typeof outputSchema === "string"` 检查 - 移除未使用的 `isCasRef` import Refs #319
xiaoju added 1 commit 2026-05-18 13:17:43 +00:00
- Remove CAS ref string support from workflow YAML outputSchema
- Simplify validate.ts: no string check for outputSchema
- Auto-set title from role name (workflow.role format)

Refs #319

小橘 🍊(NEKO Team)
xiaomo approved these changes 2026-05-18 13:18:16 +00:00
xiaomo left a comment
Owner

LGTM 简化合理,双格式没必要。

LGTM ✅ 简化合理,双格式没必要。
xiaomo merged commit 633d5aeafe into main 2026-05-18 13:18:18 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#325