Skip to content

Commit

Permalink
Upgrade Swagger UI to v3.45.1 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop authored Mar 28, 2021
1 parent 5d8e9c2 commit 26d722c
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SWAGGER_UI_VERSION := v3.43.0
SWAGGER_UI_VERSION := v3.45.1

update:
curl https://raw.githubusercontent.com/swagger-api/swagger-ui/$(SWAGGER_UI_VERSION)/dist/swagger-ui-bundle.js -o ./v3/static/swagger-ui-bundle.js
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Package `swgui` (Swagger UI) provides HTTP handler to serve Swagger UI. All asse
just build and run.

Static assets for `v3` are built from Swagger
UI [v3.43.0](https://github.com/swagger-api/swagger-ui/releases/tag/v3.43.0).
UI [v3.45.1](https://github.com/swagger-api/swagger-ui/releases/tag/v3.45.1).

[CDN-based](https://cdnjs.com/libraries/swagger-ui) `v3cdn` uses Swagger
UI [v3.43.0](https://github.com/swagger-api/swagger-ui/releases/tag/v3.43.0).
UI [v3.45.1](https://github.com/swagger-api/swagger-ui/releases/tag/v3.45.1).

## How to use

Expand Down
44 changes: 26 additions & 18 deletions v3/static.go

Large diffs are not rendered by default.

Binary file modified v3/static/oauth2-redirect.html.gz
Binary file not shown.
Binary file modified v3/static/swagger-ui-bundle.js.gz
Binary file not shown.
Binary file modified v3/static/swagger-ui-standalone-preset.js.gz
Binary file not shown.
Binary file modified v3/static/swagger-ui.css.gz
Binary file not shown.
Binary file modified v3/static/swagger-ui.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion v3cdn/cdn.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package v3cdn

const (
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.43.0/"
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.45.1/"
FaviconBase = "https://petstore.swagger.io/"
)

0 comments on commit 26d722c

Please sign in to comment.