mirror of
https://github.com/langgenius/dify.git
synced 2026-05-21 01:07:03 +08:00
ValidationError -> UnprocessableEntity(exc.json()) so CLI consumers can parse the error body. The previous str(errors()) produced a Python repr (single-quoted dicts), not JSON. Also align with sibling openapi controllers: request.args.to_dict(flat=True) and 'as exc' naming. Test cleanup: hoist module-scope imports; add a happy-path positive case covering every field.