Skip to content

Commit ed030f0

Browse files
Reichart, KaiKaiReichart
authored andcommitted
: bump swaggo files
fix test
1 parent 3a7ae30 commit ed030f0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.17
44

55
require (
66
github.com/stretchr/testify v1.7.0
7-
github.com/swaggo/files/v2 v2.0.0
7+
github.com/swaggo/files/v2 v2.0.2
88
github.com/swaggo/swag v1.8.1
99
)
1010

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
5757
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
5858
github.com/swaggo/files/v2 v2.0.0 h1:hmAt8Dkynw7Ssz46F6pn8ok6YmGZqHSVLZ+HQM7i0kw=
5959
github.com/swaggo/files/v2 v2.0.0/go.mod h1:24kk2Y9NYEJ5lHuCra6iVwkMjIekMCaFq/0JQj66kyM=
60+
github.com/swaggo/files/v2 v2.0.2 h1:Bq4tgS/yxLB/3nwOMcul5oLEUKa877Ykgz3CJMVbQKU=
61+
github.com/swaggo/files/v2 v2.0.2/go.mod h1:TVqetIzZsO9OhHX1Am9sRf9LdrFZqoK49N37KON/jr0=
6062
github.com/swaggo/swag v1.8.1 h1:JuARzFX1Z1njbCGz+ZytBR15TFJwF2Q7fu8puJHhQYI=
6163
github.com/swaggo/swag v1.8.1/go.mod h1:ugemnJsPZm/kRwFUnzBlbHRd0JY9zE1M4F+uy2pAaPQ=
6264
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=

swagger_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ func TestUIConfigOptions(t *testing.T) {
388388
PersistAuthorization: false,
389389
Layout: StandaloneLayout,
390390
DefaultModelsExpandDepth: ShowModel,
391+
ShowExtensions: false,
391392
},
392393
exp: `window.onload = function() {
393394
@@ -406,7 +407,8 @@ func TestUIConfigOptions(t *testing.T) {
406407
SwaggerUIBundle.plugins.DownloadUrl
407408
],
408409
layout: "StandaloneLayout",
409-
defaultModelsExpandDepth: 1
410+
defaultModelsExpandDepth: 1 ,
411+
showExtensions: false
410412
})
411413
412414
window.ui = ui
@@ -439,6 +441,7 @@ func TestUIConfigOptions(t *testing.T) {
439441
"defaultModelRendering": `"model"`,
440442
},
441443
DefaultModelsExpandDepth: HideModel,
444+
ShowExtensions: true,
442445
},
443446
exp: `window.onload = function() {
444447
const SomePlugin = (system) => ({
@@ -466,7 +469,8 @@ func TestUIConfigOptions(t *testing.T) {
466469
onComplete: () => { window.ui.setBasePath('v3'); },
467470
showExtensions: true,
468471
layout: "StandaloneLayout",
469-
defaultModelsExpandDepth: -1
472+
defaultModelsExpandDepth: -1 ,
473+
showExtensions: true
470474
})
471475
472476
window.ui = ui

0 commit comments

Comments
 (0)