From: Sebastián Ramírez Date: Wed, 22 Jul 2020 06:19:26 +0000 (+0200) Subject: 📌 Pin Swagger UI temporarily X-Git-Tag: 0.60.1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dadd6650ed0418722ff3e39364fed53460ec62ea;p=thirdparty%2Ffastapi%2Ffastapi.git 📌 Pin Swagger UI temporarily --- diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 44c4e69a34..45b662a0b6 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -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,