#210 migrated openapi3filter.NewRouter() to openapi3filter.NewRouter(spec) according to the changes in the README.
However the compiler is complaining that openapi3filter doesn't declare NewRouter()... and indeed, i don't see it documented here at all? https://pkg.go.dev/github.com/getkin/kin-openapi@v0.51.0/openapi3filter
How do I instantiate a new router?
May also be good to add a note to the bottom of the README under the section Sub-v0 breaking API changes since this func signature change was a breaking change (and to be clear, I'm fine with breaking changes, as long as it's clear how I can still use it...)
#210 migrated
openapi3filter.NewRouter()toopenapi3filter.NewRouter(spec)according to the changes in theREADME.However the compiler is complaining that
openapi3filterdoesn't declareNewRouter()... and indeed, i don't see it documented here at all? https://pkg.go.dev/github.com/getkin/kin-openapi@v0.51.0/openapi3filterHow do I instantiate a new router?
May also be good to add a note to the bottom of the README under the section Sub-v0 breaking API changes since this func signature change was a breaking change (and to be clear, I'm fine with breaking changes, as long as it's clear how I can still use it...)