Skip to content

Commit

Permalink
fix: delete OapiRequestValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
Eraxyso authored Dec 19, 2024
1 parent 362ed96 commit c72dd83
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
oapiMiddleware "github.com/oapi-codegen/echo-middleware"
"github.com/traPtitech/anke-to/controller"

Check failure on line 12 in main.go

View workflow job for this annotation

GitHub Actions / Lint

could not import github.com/traPtitech/anke-to/controller (-: # github.com/traPtitech/anke-to/controller
"github.com/traPtitech/anke-to/model"
"github.com/traPtitech/anke-to/openapi"
Expand Down Expand Up @@ -60,12 +59,7 @@ func main() {
controller.Wg.Add(1)
go func() {
e := echo.New()
swagger, err := openapi.GetSwagger()
if err != nil {
panic(err)
}
api := InjectAPIServer()
e.Use(oapiMiddleware.OapiRequestValidator(swagger))
e.Use(api.Middleware.SetUserIDMiddleware)
e.Use(middleware.Logger())
e.Use(middleware.Recover())
Expand Down

0 comments on commit c72dd83

Please sign in to comment.