Skip to content

Commit

Permalink
Merge pull request #1 from hija/patch-1
Browse files Browse the repository at this point in the history
Update Swagger-UI to v5 to be compatible with latest fastapi
  • Loading branch information
ahmetoner committed Jul 22, 2023
2 parents 91dbbc3 + e3fbc4b commit 049eb7f
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 049eb7f

Please sign in to comment.