fix servers in openapi doc (#1993)
This commit is contained in:
@@ -41,7 +41,11 @@ def custom_openapi() -> dict:
|
|||||||
description="API for Skyvern",
|
description="API for Skyvern",
|
||||||
routes=app.routes,
|
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
|
app.openapi_schema = openapi_schema
|
||||||
return app.openapi_schema
|
return app.openapi_schema
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user