Skip to content

Commit

Permalink
Update Swagger UI to v5.7.1, fix v4 CDN (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop authored Sep 15, 2023
1 parent 6704102 commit aed7778
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export RELEASE_TARGETS="darwin/amd64 darwin/arm64 linux/amd64 linux/arm64 window

SWAGGER_UI_VERSION_V3 := v3.52.5
SWAGGER_UI_VERSION_V4 := v4.19.1
SWAGGER_UI_VERSION_V5 := v5.1.3
SWAGGER_UI_VERSION_V5 := v5.7.1

## Update assets for Swagger UI v3
update-v3:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ just build and run.
### V5

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

[CDN-based](https://cdnjs.com/libraries/swagger-ui) `v5cdn` uses Swagger
UI [v5.1.3](https://github.com/swagger-api/swagger-ui/releases/tag/v5.1.3).
UI [v5.7.1](https://github.com/swagger-api/swagger-ui/releases/tag/v5.7.1).

### V4

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

[CDN-based](https://cdnjs.com/libraries/swagger-ui) `v4cdn` uses Swagger
UI [v4.19.1](https://github.com/swagger-api/swagger-ui/releases/tag/v4.19.1).
UI [v4.18.3](https://github.com/swagger-api/swagger-ui/releases/tag/v4.18.3).

### V3

Expand Down
2 changes: 1 addition & 1 deletion cmd/swgui/swgui.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
flag.Parse()

if *ver {
fmt.Printf("%s, Swagger UI %s\n", version.Info().Version, "v5.1.3")
fmt.Printf("%s, Swagger UI %s\n", version.Info().Version, "v5.7.1")

return
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/swaggest/swgui
go 1.17

require (
github.com/bool64/dev v0.2.29
github.com/bool64/dev v0.2.31
github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
github.com/vearutop/statigz v1.4.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs=
github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/bool64/dev v0.2.28/go.mod h1:iJbh1y/HkunEPhgebWRNcs8wfGq7sjvJ6W5iabL8ACg=
github.com/bool64/dev v0.2.29 h1:x+syGyh+0eWtOzQ1ItvLzOGIWyNWnyjXpHIcpF2HvL4=
github.com/bool64/dev v0.2.29/go.mod h1:iJbh1y/HkunEPhgebWRNcs8wfGq7sjvJ6W5iabL8ACg=
github.com/bool64/dev v0.2.31 h1:OS57EqYaYe2M/2bw9uhDCIFiZZwywKFS/4qMLN6JUmQ=
github.com/bool64/dev v0.2.31/go.mod h1:iJbh1y/HkunEPhgebWRNcs8wfGq7sjvJ6W5iabL8ACg=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
2 changes: 1 addition & 1 deletion v4cdn/cdn.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package v4cdn

const (
// AssetsBase is a base URL for the assets.
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.19.1/"
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.18.3/"

// FaviconBase is a base URL for favicons.
FaviconBase = "https://petstore.swagger.io/"
Expand Down
32 changes: 16 additions & 16 deletions v5/static.go

Large diffs are not rendered by default.

Binary file modified v5/static/swagger-ui-bundle.js.gz
Binary file not shown.
Binary file modified v5/static/swagger-ui-standalone-preset.js.gz
Binary file not shown.
Binary file modified v5/static/swagger-ui.css.gz
Binary file not shown.
Binary file modified v5/static/swagger-ui.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion v5cdn/cdn.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package v5cdn

const (
// AssetsBase is a base URL for the assets.
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/5.1.3/"
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/5.7.1/"

// FaviconBase is a base URL for favicons.
FaviconBase = "https://petstore.swagger.io/"
Expand Down

0 comments on commit aed7778

Please sign in to comment.