Skip to content

Router does not correctly handle route with ":" in it #352

@miai10

Description

@miai10

Hello!

I have a case where the swagger file contains routes like this "/allow/{serverName}/tokenlist:add". : is an allowed character in the path (see https://datatracker.ietf.org/doc/html/rfc3986#section-3.3) but denco router uses : as param delimiters without taking into account the ones coming from the path itself, for example here: https://github.com/go-openapi/runtime/blob/master/middleware/router.go#L474.

Also, it seems strange for me that the denco router is used to create the records because it needs to detect the parameters again using a new format, whereas before creating the denco record we already know the parameters from the swagger info.

Any suggestions on how to work around this issue?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions