Skip to content

Commit

Permalink
Bump Swagger UI version (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop authored Jul 23, 2023
1 parent c54334c commit aaa0e57
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 42 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ endif
# Add your custom targets here.

SWAGGER_UI_VERSION_V3 := v3.52.5
SWAGGER_UI_VERSION_V4 := v4.18.1
SWAGGER_UI_VERSION_V5 := v5.0.0-alpha.13
SWAGGER_UI_VERSION_V4 := v4.19.1
SWAGGER_UI_VERSION_V5 := v5.1.3

## Update assets for Swagger UI v3
update-v3:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ UI [v3.52.4](https://github.com/swagger-api/swagger-ui/releases/tag/v3.52.4).
### V4

Static assets for `v4` are built from Swagger
UI [v4.18.1](https://github.com/swagger-api/swagger-ui/releases/tag/v4.18.1).
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.18.1](https://github.com/swagger-api/swagger-ui/releases/tag/v4.18.1).
UI [v4.19.1](https://github.com/swagger-api/swagger-ui/releases/tag/v4.19.1).

### V5

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

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


## How to use
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.27
github.com/bool64/dev v0.2.29
github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
github.com/vearutop/statigz v1.2.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHG
github.com/bool64/dev v0.2.22/go.mod h1:iJbh1y/HkunEPhgebWRNcs8wfGq7sjvJ6W5iabL8ACg=
github.com/bool64/dev v0.2.27 h1:mFT+B74mFVgUeUmm/EbfM6ELPA55lEXBjQ/AOHCwCOc=
github.com/bool64/dev v0.2.27/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/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
34 changes: 17 additions & 17 deletions v4/static.go

Large diffs are not rendered by default.

Binary file modified v4/static/swagger-ui-bundle.js.gz
Binary file not shown.
Binary file modified v4/static/swagger-ui-standalone-preset.js.gz
Binary file not shown.
Binary file modified v4/static/swagger-ui.css.gz
Binary file not shown.
Binary file modified v4/static/swagger-ui.js.gz
Binary file not shown.
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.18.1/"
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.19.1/"

// 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.0.0-alpha.13/"
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/5.1.3/"

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

0 comments on commit aaa0e57

Please sign in to comment.