Skip to content

Commit 672b09e

Browse files
committed
Update kin-openapi to 0.13
Pulled in the latest kin-openapi and fixed a test error, since descriptions on responses are required in the spec.
1 parent 3396434 commit 672b09e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

oapi_validate_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/labstack/echo/v4"
2828
echomiddleware "github.com/labstack/echo/v4/middleware"
2929
"github.com/stretchr/testify/assert"
30+
"github.com/stretchr/testify/require"
3031
)
3132

3233
var testSchema = `openapi: "3.0.0"
@@ -48,6 +49,7 @@ paths:
4849
maximum: 100
4950
responses:
5051
'200':
52+
description: success
5153
content:
5254
application/json:
5355
schema:
@@ -116,7 +118,7 @@ func doPost(t *testing.T, e *echo.Echo, url string, jsonBody interface{}) *httpt
116118

117119
func TestOapiRequestValidator(t *testing.T) {
118120
swagger, err := openapi3.NewSwaggerLoader().LoadSwaggerFromData([]byte(testSchema))
119-
assert.NoError(t, err, "Error initializing swagger")
121+
require.NoError(t, err, "Error initializing swagger")
120122

121123
// Create a new echo router
122124
e := echo.New()

0 commit comments

Comments
 (0)