Skip to content

Commit

Permalink
Update Swagger-UI to v5 to be compatible with latest fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
hija authored Jul 21, 2023
1 parent 91dbbc3 commit e3fbc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def download_cdn_files() -> None:
static_path = Path(__file__).parent / PROJECT_NAME
static_path.mkdir(parents=True, exist_ok=True)
for cdn_url in (
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui.css",
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui-bundle.js",
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css",
"https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js",
):
urlretrieve(cdn_url, static_path / cdn_url.split("/")[-1])

Expand Down

0 comments on commit e3fbc4b

Please sign in to comment.