FastAPI – switching out OpenAPI.json after it has been generated – where to put code? FastAPI generates the “openapi.json” file and provides an interface to it.