File tree Expand file tree Collapse file tree 5 files changed +10
-12
lines changed
tests/test_tutorial/test_custom_docs_ui Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ Sie können wahrscheinlich mit der rechten Maustaste auf jeden Link klicken und
9696
9797** Swagger UI** verwendet folgende Dateien:
9898
99- * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0 /swagger-ui-bundle.js " class =" external-link " target =" _blank " >` swagger-ui-bundle.js ` </a >
100- * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0 /swagger-ui.css " class =" external-link " target =" _blank " >` swagger-ui.css ` </a >
99+ * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js " class =" external-link " target =" _blank " >` swagger-ui-bundle.js ` </a >
100+ * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css " class =" external-link " target =" _blank " >` swagger-ui.css ` </a >
101101
102102Und ** ReDoc** verwendet diese Datei:
103103
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ You can probably right-click each link and select an option similar to `Save lin
9696
9797** Swagger UI** uses the files:
9898
99- * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0 /swagger-ui-bundle.js " class =" external-link " target =" _blank " >` swagger-ui-bundle.js ` </a >
100- * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0 /swagger-ui.css " class =" external-link " target =" _blank " >` swagger-ui.css ` </a >
99+ * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js " class =" external-link " target =" _blank " >` swagger-ui-bundle.js ` </a >
100+ * <a href =" https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css " class =" external-link " target =" _blank " >` swagger-ui.css ` </a >
101101
102102And ** ReDoc** uses the file:
103103
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ async def custom_swagger_ui_html():
1414 openapi_url = app .openapi_url ,
1515 title = app .title + " - Swagger UI" ,
1616 oauth2_redirect_url = app .swagger_ui_oauth2_redirect_url ,
17- swagger_js_url = "https://unpkg.com/swagger-ui-dist@5.9.0 /swagger-ui-bundle.js" ,
18- swagger_css_url = "https://unpkg.com/swagger-ui-dist@5.9.0 /swagger-ui.css" ,
17+ swagger_js_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" ,
18+ swagger_css_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" ,
1919 )
2020
2121
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def get_swagger_ui_html(
5353 It is normally set to a CDN URL.
5454 """
5555 ),
56- ] = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0 /swagger-ui-bundle.js" ,
56+ ] = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js" ,
5757 swagger_css_url : Annotated [
5858 str ,
5959 Doc (
@@ -63,7 +63,7 @@ def get_swagger_ui_html(
6363 It is normally set to a CDN URL.
6464 """
6565 ),
66- ] = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0 /swagger-ui.css" ,
66+ ] = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css" ,
6767 swagger_favicon_url : Annotated [
6868 str ,
6969 Doc (
Original file line number Diff line number Diff line change @@ -20,10 +20,8 @@ def client():
2020def test_swagger_ui_html (client : TestClient ):
2121 response = client .get ("/docs" )
2222 assert response .status_code == 200 , response .text
23- assert (
24- "https://unpkg.com/[email protected] /swagger-ui-bundle.js" in response .
text 25- )
26- assert "https://unpkg.com/[email protected] /swagger-ui.css" in response .
text 23+ assert "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" in response .text
24+ assert "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" in response .text
2725
2826
2927def test_swagger_ui_oauth2_redirect_html (client : TestClient ):
You can’t perform that action at this time.
0 commit comments