Releases: g0di/fastapi-problem-details
Releases · g0di/fastapi-problem-details
0.1.4
0.1.3
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
nullvalues are stripped from returned problem details - Mention that all error handlers can be overriden
0.1.2
0.1.1
Added
- Added external documentation pointing to the official Problem details RFC in the Problem OpenAPI Schema
Changed
exc_typesimplified property returned in problem responses for unhandled errors (was<class 'path.to.module.YourError'>, nowpath.to.module.YourError)null/Nonevalues 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
Added
- Add ability to register the plugin to handle unhandled, validation and http errors as problem details response
- Add ability to raise
ProblemExceptionfor returning problem details responses - Add ability to returns
ProblemResponseobjects for returning problem details responses