from pydantic_settings import BaseSettings from fastapi import FastAPI class Settings(BaseSettings): openapi_url: str = "/openapi.json" settings = Settings() app = FastAPI(openapi_url=settings.openapi_url) @app.get("/") def root(): return {"message": "Hello World"}