Skip to content

v2.0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Sep 18:16
v2.0.2
9e6f6ff

Patch release completing the RFC 9457 error surface. No breaking changes.

Fixed

  • FastAPI request validation failures (a malformed request body, a missing required field, or an out-of-range query parameter such as ?page=0 on a list route) were still returned as FastAPI's default {"detail": [...]} body with application/json, because only pydantic.ValidationError was routed through the Problem Details handler. RequestValidationError now produces the same 422 application/problem+json response as other validation errors: generic detail, a trace_id, and the structured error list under the errors extension with loc, type, and msg preserved.

Upgrading

Drop-in for 2.0.x users. Clients that parsed the top-level detail list of a 422 should read the errors member of the Problem Details body instead; the entries are unchanged.

What's Changed

  • fix(api): return Problem Details for FastAPI request validation errors by @mortenoh in #40
  • chore: release 2.0.2 by @mortenoh in #41

Full Changelog: v2.0.1...v2.0.2