Skip to content

Commit

Permalink
Upgrade Swagger UI to v3.52.2, v4.0.0-rc.1 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop authored Sep 14, 2021
1 parent a109a69 commit 662713a
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 74 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
gorelease:
strategy:
matrix:
go-version: [ 1.16.x ]
go-version: [ 1.17.x ]
runs-on: ubuntu-latest
steps:
- name: Install Go
Expand All @@ -32,13 +32,13 @@ jobs:
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
echo "::set-output name=report::$OUTPUT"
- name: Comment Gorelase Report
- name: Comment Report
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
header: gorelease
message: |
### Exported API Changes Report
### API Changes
<pre>
${{ steps.gorelease.outputs.report }}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ endif

# Add your custom targets here.

SWAGGER_UI_VERSION_V3 := v3.51.1
SWAGGER_UI_VERSION_V4 := v4.0.0-beta.1
SWAGGER_UI_VERSION_V3 := v3.52.1
SWAGGER_UI_VERSION_V4 := v4.0.0-rc.1

## 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 @@ -6,18 +6,18 @@ 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.51.1](https://github.com/swagger-api/swagger-ui/releases/tag/v3.51.1).
UI [v3.52.2](https://github.com/swagger-api/swagger-ui/releases/tag/v3.52.2).

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

### V4 Beta

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

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


## How to use
Expand Down
12 changes: 8 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
module github.com/swaggest/swgui

require (
github.com/bool64/dev v0.1.37
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
github.com/bool64/dev v0.1.41
github.com/shurcooL/httpgzip v0.0.0-20190720172056-320755c1c1b0
github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd
github.com/vearutop/statigz v1.1.4
golang.org/x/net v0.0.0-20210716203947-853a461950ff // indirect
github.com/vearutop/statigz v1.1.5
)

require (
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
golang.org/x/net v0.0.0-20210913180222-943fd674d43e // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/tools v0.1.5 // indirect
)
13 changes: 6 additions & 7 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
github.com/andybalholm/brotli v1.0.3 h1:fpcw+r1N1h0Poc1F/pHbW40cUm/lMEQslZtCkBQ0UnM=
github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/bool64/dev v0.1.35/go.mod h1:cTHiTDNc8EewrQPy3p1obNilpMpdmlUesDkFTF2zRWU=
github.com/bool64/dev v0.1.37 h1:/c8U4emt4xjMDx8Au+POOYo5LJIw+Mzi4e48j5CmGQo=
github.com/bool64/dev v0.1.37/go.mod h1:cTHiTDNc8EewrQPy3p1obNilpMpdmlUesDkFTF2zRWU=
github.com/bool64/dev v0.1.41 h1:L554LCQZc3d7mtcdPUgDbSrCVbr48/30zgu0VuC/FTA=
github.com/bool64/dev v0.1.41/go.mod h1:cTHiTDNc8EewrQPy3p1obNilpMpdmlUesDkFTF2zRWU=
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 All @@ -16,17 +15,17 @@ github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd/go.mod h1:TrYk7fJV
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/vearutop/statigz v1.1.4 h1:2gpLdp/CPzJ6s2QMjHgZ0tnAmu2peO2G5SQEL27MWtU=
github.com/vearutop/statigz v1.1.4/go.mod h1:mxG5Aj8YTjlkZzlgo8jcsthR6fnHpBhmh5q5pVKza0s=
github.com/vearutop/statigz v1.1.5 h1:qWvRgXFsseWVTFCkIvwHQPpaLNf9WI0+dDJE7I9432o=
github.com/vearutop/statigz v1.1.5/go.mod h1:czAv7iXgPv/s+xsgXpVEhhD0NSOQ4wZPgmM/n7LANDI=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/net v0.0.0-20210716203947-853a461950ff h1:j2EK/QoxYNBsXI4R7fQkkRUk8y6wnOBI+6hgPdP/6Ds=
golang.org/x/net v0.0.0-20210716203947-853a461950ff/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210913180222-943fd674d43e h1:+b/22bPvDYt4NPDcy4xAGCmON713ONAWFeY3Z7I3tR8=
golang.org/x/net v0.0.0-20210913180222-943fd674d43e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down
51 changes: 21 additions & 30 deletions v3/static.go

Large diffs are not rendered by default.

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.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
Expand Up @@ -3,7 +3,7 @@ package v3cdn

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

// FaviconBase is a base URL for favicons.
FaviconBase = "https://petstore.swagger.io/"
Expand Down
43 changes: 21 additions & 22 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.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.0.0-beta.1/"
AssetsBase = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.0.0-rc.1/"

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

0 comments on commit 662713a

Please sign in to comment.