feat: 添加解析输入参数的JSON Schema功能,增强工作流API的输入验证和文档生成能力

This commit is contained in:
iHeyTang
2025-08-13 17:27:24 +08:00
parent 89101e3341
commit 0d5963fb56
2 changed files with 127 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ async def get_one_workflow_endpoint(base_name: str, version: Optional[str] = Non
return {
"workflow": workflow,
"api_spec": comfyui_client.parse_api_spec(workflow),
"inputs_json_schema": comfyui_client.parse_inputs_json_schema(workflow),
}
except Exception as e:
raise HTTPException(