mirror of
https://github.com/langgenius/dify.git
synced 2026-07-15 01:17:04 +08:00
`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.