Skip to content

Releases: g0di/fastapi-problem-details

0.1.4

08 Nov 10:57
Compare
Choose a tag to compare

Fixed

  • Fixed the content type of the default problem details response in the generated FastAPI OpenAPI specification to application/problem+json (#720e154)

Docs

  • Add a troubleshooting section in the documentation about a small workaround when dealing with FastAPI APIRouter routers (#447df1e)

0.1.3

04 Nov 10:20
Compare
Choose a tag to compare

Fixed

  • Fixed incorrect problem details openapi schema examples (#b9769fb)

Docs

  • Updated the doc examples to align with changes made in previous release
  • Add a section explaining how to document and register additional problem details
  • Mention that null values are stripped from returned problem details
  • Mention that all error handlers can be overriden

0.1.2

01 Aug 12:15
Compare
Choose a tag to compare

Fixed

  • Remove unexpected ge and lt properties from generated JSON Schema for status property of Problem schema.

0.1.1

01 Aug 08:12
Compare
Choose a tag to compare

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

0.1.0

31 Jul 09:43
Compare
Choose a tag to compare

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