From: Alan Wright <31636206+RAlanWright@users.noreply.github.com> Date: Sun, 17 Apr 2022 14:47:14 +0000 (-0500) Subject: ⬆ Upgrade Swagger UI - swagger-ui-dist@4 (#4347) X-Git-Tag: 0.75.2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acf8a91c258003f3ff487bed0974c479f7136333;p=thirdparty%2Ffastapi%2Ffastapi.git ⬆ Upgrade Swagger UI - swagger-ui-dist@4 (#4347) Co-authored-by: Sebastián Ramírez --- diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 1be90d188f..d6af17a850 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -17,8 +17,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@4/swagger-ui-bundle.js", + swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui.css", swagger_favicon_url: str = "https://fastapi.tiangolo.com/img/favicon.png", oauth2_redirect_url: Optional[str] = None, init_oauth: Optional[Dict[str, Any]] = None,