]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📌 Pin Swagger UI temporarily
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 22 Jul 2020 06:19:26 +0000 (08:19 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2020 06:19:26 +0000 (08:19 +0200)
fastapi/openapi/docs.py

index 44c4e69a34f750ebf82ac231f3229700693958ff..45b662a0b679c8e8671d924f752f99f2aa8b9076 100644 (file)
@@ -9,8 +9,8 @@ def get_swagger_ui_html(
     *,
     openapi_url: str,
     title: str,
-    swagger_js_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js",
-    swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css",
+    swagger_js_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.30.0/swagger-ui-bundle.js",
+    swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.30.0/swagger-ui.css",
     swagger_favicon_url: str = "https://fastapi.tiangolo.com/img/favicon.png",
     oauth2_redirect_url: Optional[str] = None,
     init_oauth: Optional[dict] = None,