Skip to content

Commit dadd665

Browse files
authored
📌 Pin Swagger UI temporarily
1 parent c5a2135 commit dadd665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastapi/openapi/docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def get_swagger_ui_html(
99
*,
1010
openapi_url: str,
1111
title: str,
12-
swagger_js_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js",
13-
swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css",
12+
swagger_js_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.30.0/swagger-ui-bundle.js",
13+
swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.30.0/swagger-ui.css",
1414
swagger_favicon_url: str = "https://fastapi.tiangolo.com/img/favicon.png",
1515
oauth2_redirect_url: Optional[str] = None,
1616
init_oauth: Optional[dict] = None,

0 commit comments

Comments
 (0)