Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,32 @@ go 1.25.0

require (
github.com/getkin/kin-openapi v0.142.0
github.com/gofiber/fiber/v2 v2.52.14
github.com/gofiber/fiber/v3 v3.4.0
github.com/stretchr/testify v1.11.1
)

require (
github.com/andybalholm/brotli v1.2.2 // indirect
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-openapi/jsonpointer v1.0.0 // indirect
github.com/gofiber/schema v1.8.0 // indirect
github.com/gofiber/utils/v2 v2.1.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/mux v1.8.1 // indirect
github.com/klauspost/compress v1.19.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/mattn/go-colorable v0.1.15 // indirect
github.com/mattn/go-isatty v0.0.23 // indirect
github.com/mattn/go-runewidth v0.0.24 // indirect
github.com/oasdiff/yaml v0.1.1 // indirect
github.com/oasdiff/yaml3 v0.0.14 // indirect
github.com/philhofer/fwd v1.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
github.com/tinylib/msgp v1.6.4 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.72.0 // indirect
golang.org/x/crypto v0.53.0 // indirect
golang.org/x/net v0.56.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.40.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
26 changes: 20 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
github.com/andybalholm/brotli v1.2.2 h1:HzTuoo2ErYQqf5qvcJInB8uvqSVxRttzkFexPWtnceM=
github.com/andybalholm/brotli v1.2.2/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk=
github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI=
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/fxamacker/cbor/v2 v2.9.2 h1:X4Ksno9+x3cz0TZv69ec1hxP/+tymuR8PXQJyDwfh78=
github.com/fxamacker/cbor/v2 v2.9.2/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ=
github.com/getkin/kin-openapi v0.142.0 h1:izj0vBdFprMhitfzaX8sTqztsEQyvwhssBoB6n8NO7w=
github.com/getkin/kin-openapi v0.142.0/go.mod h1:3BH9M9XDe/y9M5DSvEocVYAYq1w0qrhJHjC/vZi0AaY=
github.com/go-openapi/jsonpointer v1.0.0 h1:kR9tHqY0CtZaOPVFm622dPVNhrvYpwr4uCxgL3h1H8s=
github.com/go-openapi/jsonpointer v1.0.0/go.mod h1:Z3rw7dWu1p9IgitXCFamSlA5lmDiklEB6vkaxcNZW5Y=
github.com/go-openapi/testify/v2 v2.6.0 h1:5PKH2HE7YJ/LuRPQGvSxBRlFXNQhSetBLlGAgUEu3ug=
github.com/go-openapi/testify/v2 v2.6.0/go.mod h1:SgsVHtfooshd0tublTtJ50FPKhujf47YRqauXXOUxfw=
github.com/gofiber/fiber/v2 v2.52.14 h1:Of3L+9qVFaQNwPlcmEdl5IIodHz8BSE0j37R7rWu4pE=
github.com/gofiber/fiber/v2 v2.52.14/go.mod h1:YEcBbO/FB+5M1IZNBP9FO3J9281zgPAreiI1oqg8nDw=
github.com/gofiber/fiber/v3 v3.4.0 h1:F0aND4vwZF7dR7cbvSwFQQEpBU902XHKWxrLsFBkVqw=
github.com/gofiber/fiber/v3 v3.4.0/go.mod h1:nAhJfdxUIJJph2tPWPmqWf8QDIN2iiqQiQf3lENZpdk=
github.com/gofiber/schema v1.8.0 h1:NGsC9toPHmj8Xg4KpznuXBzNmHG6V5YV0tXKpKMcmis=
github.com/gofiber/schema v1.8.0/go.mod h1:lmbXPQ8hvzXSLkdS2DS7pb4kpunC2Roh7Sj3HMjGfzA=
github.com/gofiber/utils/v2 v2.1.1 h1:kGnoGjwEnFW6w0x45W+kLlmMJvqBGkuUA4oMWKn/T/I=
github.com/gofiber/utils/v2 v2.1.1/go.mod h1:DdOgEVwQTi8cou/AKWPqhXOR4fHGRVhA/rEWL3IXG7Q=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
Expand All @@ -29,27 +33,37 @@ github.com/mattn/go-colorable v0.1.15 h1:+u9SLTRGnXv73cEsnsmoZBom+dMU88B2M0aDcWy
github.com/mattn/go-colorable v0.1.15/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.23 h1:cYwCQTQf3HB6xUC+BtyCLZNr7IzbOmoZbmssVNzSyiQ=
github.com/mattn/go-isatty v0.0.23/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A=
github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU=
github.com/mattn/go-runewidth v0.0.24/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
github.com/oasdiff/yaml v0.1.1 h1:6nHx+pn9gBRM6YpBlFZFQGCCd1nuvqOBtTD3KKTgGxY=
github.com/oasdiff/yaml v0.1.1/go.mod h1:EYJNoyktvWMJ0Hmhx+6qTaqMOsalUaRGT8Sj1hNcegU=
github.com/oasdiff/yaml3 v0.0.14 h1:aLJee3hxBK2H5wdXd9iPcIXb93Nty1Ge0pT171eHtkw=
github.com/oasdiff/yaml3 v0.0.14/go.mod h1:csto2xfDjYccdUn/yw/bPjj/cYTdp6HtFA0J4TWG+gg=
github.com/philhofer/fwd v1.2.0 h1:e6DnBTl7vGY+Gz322/ASL4Gyp1FspeMvx1RNDoToZuM=
github.com/philhofer/fwd v1.2.0/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ=
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
github.com/shamaton/msgpack/v3 v3.1.2 h1:d5gWAIyMU4M0WgDjz6IFSCuXJUA2dFwRHBpDclE8CLw=
github.com/shamaton/msgpack/v3 v3.1.2/go.mod h1:DcQG8jrdrQCIxr3HlMYkiXdMhK+KfN2CitkyzsQV4uc=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
github.com/tinylib/msgp v1.6.4 h1:mOwYbyYDLPj35mkA2BjjYejgJk9BuHxDdvRnb6v2ZcQ=
github.com/tinylib/msgp v1.6.4/go.mod h1:RSp0LW9oSxFut3KzESt5Voq4GVWyS+PSulT77roAqEA=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.72.0 h1:R7kYdoWhn1ye1fVpP+cDHDJwYm3NkwLliwgzJ/Abg7M=
github.com/valyala/fasthttp v1.72.0/go.mod h1:zsbLTYqcpIktdQytlVBwIjY9La5d6bs990nBxWg8efk=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
golang.org/x/crypto v0.53.0 h1:QZ4Muo8THX6CizN2vPPd5fBGHyogrdK9fG4wLPFUsto=
golang.org/x/crypto v0.53.0/go.mod h1:DNLU434OwVakk9PzuwV8w62mAJpRJL3vsgcfp4Qnsio=
golang.org/x/net v0.56.0 h1:Rw8j/hFzGvJUZwNBXnAtf5sVDVt+65SK2C7IxCxZt5o=
golang.org/x/net v0.56.0/go.mod h1:D3Ku6r+V6JROoZK144D2XfMHFcMq/0zSfLelVTCFKec=
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs=
Expand Down
4 changes: 2 additions & 2 deletions oapi_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"github.com/getkin/kin-openapi/openapi3filter"
"github.com/getkin/kin-openapi/routers"
"github.com/getkin/kin-openapi/routers/gorillamux"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/adaptor"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/adaptor"
)

type ctxKeyFiberContext struct{}
Expand Down Expand Up @@ -70,7 +70,7 @@
panic(err)
}

return func(c *fiber.Ctx) error {

Check failure on line 73 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

cannot use func(c *fiber.Ctx) error {…} (value of type func(c *fiber.Ctx) error) as fiber.Handler value in return statement

Check failure on line 73 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

cannot use func(c *fiber.Ctx) error {…} (value of type func(c *fiber.Ctx) error) as fiber.Handler value in return statement

Check failure on line 73 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

cannot use func(c *fiber.Ctx) error {…} (value of type func(c *fiber.Ctx) error) as fiber.Handler value in return statement

Check failure on line 73 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

cannot use func(c *fiber.Ctx) error {…} (value of type func(c *fiber.Ctx) error) as fiber.Handler value in return statement

Check failure on line 73 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

cannot use func(c *fiber.Ctx) error {…} (value of type func(c *fiber.Ctx) error) as fiber.Handler value in return statement

Check failure on line 73 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

cannot use func(c *fiber.Ctx) error {…} (value of type func(c *fiber.Ctx) error) as fiber.Handler value in return statement

err := ValidateRequestFromContext(c, router, options)
if err != nil {
Expand All @@ -83,7 +83,7 @@
return fiber.NewError(http.StatusBadRequest, err.Error())
}
}
return c.Next()

Check failure on line 86 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.Next undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 86 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.Next undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 86 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.Next undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 86 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.Next undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 86 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.Next undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 86 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.Next undefined (type *fiber.Ctx is pointer to interface, not interface)
}
}

Expand All @@ -91,7 +91,7 @@
// of validating a request.
func ValidateRequestFromContext(c *fiber.Ctx, router routers.Router, options *Options) error {

r, err := adaptor.ConvertRequest(c, false)

Check failure on line 94 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

cannot use c (variable of type *fiber.Ctx) as fiber.Ctx value in argument to adaptor.ConvertRequest: *fiber.Ctx does not implement fiber.Ctx (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 94 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

cannot use c (variable of type *fiber.Ctx) as fiber.Ctx value in argument to adaptor.ConvertRequest: *fiber.Ctx does not implement fiber.Ctx (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 94 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

cannot use c (variable of type *fiber.Ctx) as fiber.Ctx value in argument to adaptor.ConvertRequest: *fiber.Ctx does not implement fiber.Ctx (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 94 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

cannot use c (variable of type *fiber.Ctx) as fiber.Ctx value in argument to adaptor.ConvertRequest: *fiber.Ctx does not implement fiber.Ctx (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 94 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

cannot use c (variable of type *fiber.Ctx) as fiber.Ctx value in argument to adaptor.ConvertRequest: *fiber.Ctx does not implement fiber.Ctx (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 94 in oapi_validate.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

cannot use c (variable of type *fiber.Ctx) as fiber.Ctx value in argument to adaptor.ConvertRequest: *fiber.Ctx does not implement fiber.Ctx (type *fiber.Ctx is pointer to interface, not interface)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion oapi_validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

"github.com/getkin/kin-openapi/openapi3"
"github.com/getkin/kin-openapi/openapi3filter"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -81,7 +81,7 @@
// access to "someScope", but disallow others.
options := Options{
ErrorHandler: func(c *fiber.Ctx, message string, statusCode int) {
_ = c.Status(statusCode).SendString("test: " + message)

Check failure on line 84 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.Status undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 84 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.Status undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 84 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.Status undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 84 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.Status undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 84 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.Status undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 84 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.Status undefined (type *fiber.Ctx is pointer to interface, not interface)
},
Options: openapi3filter.Options{
AuthenticationFunc: func(c context.Context, input *openapi3filter.AuthenticationInput) error {
Expand Down Expand Up @@ -150,7 +150,7 @@
// Add a handler for the POST message
app.Post("/resource", func(c *fiber.Ctx) error {
called = true
return c.SendStatus(http.StatusNoContent)

Check failure on line 153 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 153 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 153 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 153 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 153 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 153 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)
})

called = false
Expand Down Expand Up @@ -182,7 +182,7 @@

app.Get("/protected_resource", func(c *fiber.Ctx) error {
called = true
return c.SendStatus(http.StatusNoContent)

Check failure on line 185 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 185 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 185 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 185 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 185 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 185 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)
})

// Call a protected function to which we have access
Expand All @@ -195,7 +195,7 @@

app.Get("/protected_resource2", func(c *fiber.Ctx) error {
called = true
return c.SendStatus(http.StatusNoContent)

Check failure on line 198 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 198 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 198 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 198 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 198 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 198 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)
})
// Call a protected function to which we don't have access
{
Expand All @@ -207,7 +207,7 @@

app.Get("/protected_resource_401", func(c *fiber.Ctx) error {
called = true
return c.SendStatus(http.StatusNoContent)

Check failure on line 210 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 210 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 210 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.25)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 210 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface) (typecheck)

Check failure on line 210 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Build (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface)

Check failure on line 210 in oapi_validate_test.go

View workflow job for this annotation

GitHub Actions / build / Lint (1.26)

c.SendStatus undefined (type *fiber.Ctx is pointer to interface, not interface) (typecheck)
})
// Call a protected function without credentials
{
Expand Down
Loading