Skip to content

Commit

Permalink
Merge pull request #8 from HUK-COBURG/dependabot/go_modules/github.co…
Browse files Browse the repository at this point in the history
…m/getkin/kin-openapi-0.61.0

Bump github.com/getkin/kin-openapi from 0.55.0 to 0.61.0
  • Loading branch information
crissi98 authored May 19, 2021
2 parents e962746 + f9b2276 commit d9b062f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/huk-coburg/openapirouter
go 1.15

require (
github.com/getkin/kin-openapi v0.55.0
github.com/go-openapi/swag v0.19.14 // indirect
github.com/getkin/kin-openapi v0.61.0
github.com/go-openapi/swag v0.19.15 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/stretchr/testify v1.7.0
)
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Router struct {

// NewRouter creates a new Router with the path of a OpenAPI specification file in YAML or JSON format.
func NewRouter(swaggerPath string) (*Router, error) {
swagger, err := openapi3.NewSwaggerLoader().LoadSwaggerFromFile(swaggerPath)
swagger, err := openapi3.NewLoader().LoadFromFile(swaggerPath)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d9b062f

Please sign in to comment.