From: John Riebold Date: Thu, 5 Nov 2020 21:57:16 +0000 (-0800) Subject: 📌 Relax Swagger UI version pin (#2089) X-Git-Tag: 0.61.2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e6d18385fbe51a671f40b7606e8cd7faa49be0;p=thirdparty%2Ffastapi%2Ffastapi.git 📌 Relax Swagger UI version pin (#2089) --- diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 45b662a0b6..44c4e69a34 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.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_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_favicon_url: str = "https://fastapi.tiangolo.com/img/favicon.png", oauth2_redirect_url: Optional[str] = None, init_oauth: Optional[dict] = None,