Remove OapiRequestValidator

It's not working properly.
This commit is contained in:
Sybren A. Stüvel 2022-01-07 11:12:04 +01:00 committed by Sybren A. Stüvel
parent 38a8943767
commit f2d289ef77

View File

@ -6,7 +6,6 @@ import (
"net/http" "net/http"
"time" "time"
middleware "github.com/deepmap/oapi-codegen/pkg/gin-middleware"
"github.com/getkin/kin-openapi/openapi3" "github.com/getkin/kin-openapi/openapi3"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/mattn/go-colorable" "github.com/mattn/go-colorable"
@ -68,7 +67,6 @@ func ginOpenAPIPoC() {
c.JSON(http.StatusOK, swagger) c.JSON(http.StatusOK, swagger)
}) })
r.Use(middleware.OapiRequestValidator(swagger))
flamenco := api.NewFlamenco() flamenco := api.NewFlamenco()
r = api.RegisterHandlers(r, flamenco) r = api.RegisterHandlers(r, flamenco)