Skip to content

Commit f1e5dff

Browse files
committed
fix: openapi tests
1 parent 50bdce3 commit f1e5dff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openapi/openapi_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func TestGetBasePath(t *testing.T) {
301301
{
302302
URL: "http://my-api.foo.bar/{mount}/api",
303303
Variables: map[string]*openapi3.ServerVariable{
304-
"mount": {Default: "point", Enum: []interface{}{"vec", "point"}},
304+
"mount": {Default: "point", Enum: []string{"vec", "point"}},
305305
},
306306
},
307307
},
@@ -315,7 +315,7 @@ func TestGetBasePath(t *testing.T) {
315315
{
316316
URL: "http://my-api.foo.bar/{mount}/api",
317317
Variables: map[string]*openapi3.ServerVariable{
318-
"mount": {Default: "point", Enum: []interface{}{"vec", "point"}},
318+
"mount": {Default: "point", Enum: []string{"vec", "point"}},
319319
},
320320
},
321321
},
@@ -329,7 +329,7 @@ func TestGetBasePath(t *testing.T) {
329329
URL: "http://{env}my-api.foo.bar/{mount}/api",
330330
Variables: map[string]*openapi3.ServerVariable{
331331
"env": {Default: "pp"},
332-
"mount": {Default: "point", Enum: []interface{}{"vec", "point"}},
332+
"mount": {Default: "point", Enum: []string{"vec", "point"}},
333333
},
334334
},
335335
},

0 commit comments

Comments
 (0)