All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Aligned this changelog with actual github releases
- Updated project URL pointing to this changelog (for PyPi)
0.1.4 - 2024-11-08
- Fixed the content type of the
default
problem details response in the generated FastAPI OpenAPI specification toapplication/problem+json
(#720e154)
- Add a troubleshooting section in the documentation about a small workaround when dealing with FastAPI
APIRouter
routers (#447df1e)
0.1.3 - 2024-11-04
- Fixed incorrect problem details openapi schema examples (#b9769fb)
- 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 - 2024-08-01
- Remove unexpected
ge
andlt
properties from generated JSON Schema forstatus
property ofProblem
schema.
0.1.1 - 2024-08-01
- Added external documentation pointing to the official Problem details RFC in the Problem OpenAPI Schema
exc_type
simplified property returned in problem responses for unhandled errors (was<class 'path.to.module.YourError'>
, nowpath.to.module.YourError
)null
/None
values are now omitted from Problem response. Problem JSON Schema has been updated to reflect that
- Constraints on Problem status code (
100 <= status code < 600
) is now properly displayed in the Problem JSON Schema
0.1.0 - 2024-07-30
- Add ability to register the plugin to transform unhandled, validation and http errors as problem details response
- Add ability to raise
ProblemException
directly for returning problem details responses - Add ability to returns
ProblemResponse
objects for returning problem details responses