Skip to content

What happened to openapi3filter.NewRouter(spec)? #326

@jeffwidman

Description

@jeffwidman

#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...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions