HomePostsProjects

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
    • https://github.com/fastapi/fastapi/issues/872
    • https://github.com/fastapi/fastapi/pull/1547

Errors

  • https://community.openai.com/t/random-aiohttp-clientresponseerror/577507

© 2025 Luke Miloszewski

Email AddressGitHubTwitter