FastAPI to include servers when generating OpenAPI spec
October 28, 2024
OpenAPI schema:
- requires the inclusion of
servers
to specify the base URL for the API, which is not handled by default in the FastAPI OpenAPI spec generation, this can be opted in for
Errors