chore: deduplicate debate frontmatter with YAML anchor #135
Reference in New Issue
Block a user
Delete Branch "chore/debate-yaml-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Address review suggestions from #133.
Changes
examples/debate.yaml&debater-frontmatterYAML anchor for the shared oneOf schema between proponent and opponent (was duplicated)capabilities: []kept — required byWorkflowPayloadtype (cannot omit)Note
capabilities是 protocol 里的 required field,删掉会导致uwf workflow add报expected WorkflowPayload shape。如果要让它可选,需要改 protocol type + schema validation,可以另开 issue。Ref
Addresses review suggestions from #133.
LGTM ✅
x-debater-frontmatteranchor 去重干净,x-前缀借鉴 OpenAPI 惯例也很好。capabilities required field 和 block scalar 不能嵌 anchor 的说明收到,都合理。