Skip to content

Cannot validate path parameters encoded with new router #397

@rtfpessoa

Description

@rtfpessoa

Hi,

My paths are not being validated correctly with the new mux router.

Seems like the problem is here https://github.com/getkin/kin-openapi/blob/master/routers/gorillamux/router.go#L59

Any reason to not use the encoded path originally?

e.g.:

/my/pa%2Fram/path should match the route /my/{param}/path but it does not.

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