fix servers in openapi doc (#1993)

This commit is contained in:
Shuchang Zheng
2025-03-21 13:45:26 -07:00
committed by GitHub
parent f865c38038
commit 3166c0dd17

View File

@@ -41,7 +41,11 @@ def custom_openapi() -> dict:
description="API for Skyvern",
routes=app.routes,
)
openapi_schema["servers"] = [{"url": "https://api.skyvern.com", "x-fern-server-name": "Production"}]
openapi_schema["servers"] = [
{"url": "https://api.skyvern.com", "x-fern-server-name": "Production"},
{"url": "https://api-staging.skyvern.com", "x-fern-server-name": "Staging"},
{"url": "http://localhost:8000", "x-fern-server-name": "Development"},
]
app.openapi_schema = openapi_schema
return app.openapi_schema