Extend a FastAPI OpenAPI spec to include all possible HTTPException or custom Exception response schemas..
MIT License
Documentation: https://saran33.github.io/fastapi-docx
Source Code: https://github.com/Saran33/fastapi-docx
FastAPI-docx extends the FastAPI OpenAPI spec to include all possible HTTPException
or custom Exception response schemas that may be raised within path operations.
The key features are:
HTTPException
raised by the endpoint function directly, in a nested function, class method, or callable class instance, or by the fastAPI dependency-injection system.HTTPExceptionSchema
will be added to the OpenAPI specification. The default can be modified to use any other Pydantic model. An additional schema for app-specific custom Exceptions can also be included.This project is licensed under the terms of the MIT license.