fastapi-problem-details

Structure your FastAPI API error responses with consistent and machine readable format using the RFC 9457 "Problem Details for HTTP APIs" standard

MIT License

Downloads
260
Stars
0
Committers
1

Bot releases are visible (Hide)

fastapi-problem-details - 0.1.2 Latest Release

Published by g0di 3 months ago

Fixed

  • Remove unexpected ge and lt properties from generated JSON Schema for status property of Problem schema.
fastapi-problem-details - 0.1.1

Published by g0di 3 months ago

Added

  • Added external documentation pointing to the official Problem details RFC in the Problem OpenAPI Schema

Changed

  • exc_type simplified property returned in problem responses for unhandled errors (was <class 'path.to.module.YourError'>, now path.to.module.YourError)
  • null/None values are now omitted from Problem response. Problem JSON Schema has been updated to reflect that

Fixed

  • Constraints on Problem status code (100 <= status code < 600) is now properly displayed in the Problem JSON Schema
fastapi-problem-details - 0.1.0

Published by g0di 3 months ago

Added

  • Add ability to register the plugin to handle unhandled, validation and http errors as problem details response
  • Add ability to raise ProblemException for returning problem details responses
  • Add ability to returns ProblemResponse objects for returning problem details responses
Package Rankings
Top 34.99% on Pypi.org