Files
dify/api/controllers/openapi
L1nSn0w 695cbec567 fix(openapi): sanitize @accepts validation errors
`UnprocessableEntity(exc.json())` leaked the version-pinned pydantic docs url
and echoed the entire user-supplied input, and double-encoded JSON into the
`message` field. Use flask-restx `abort(422, message=..., errors=...)` with
`exc.errors(include_url=False, include_input=False, include_context=False)` so
the body is a structured object with no version/input leak and no double-encoding.

Also trim verbose comments/docstrings across the touched openapi files.
2026-06-10 10:04:43 +08:00
..
2026-05-26 01:12:36 +00:00
2026-05-26 01:12:36 +00:00