mirror of
https://github.com/langgenius/dify.git
synced 2026-06-12 19:28:01 +08:00
Complete the request/response contract unification (GareArc review followup): the remaining handlers that returned a model via manual `.model_dump(mode="json")` now return the bare model behind `@returns`, so every openapi handler references its response model once and doc == runtime. Migrated: version, health, account info/session-revoke (x2), file upload, task stop, human-input form submit, and workspaces list/detail/switch/invite/remove/ role. Handlers returning a bare dict (account info, version, health) now go through `@returns` → `(body, status)`; HTTP behavior is unchanged. Health/task-stop/form-submit now construct their advertised model instead of a hand-built dict.