Skip to content

OpenAPI generation appends "/openapi.json" even if the parent path has a forward slash #390

@jsoverson

Description

@jsoverson

Describe the bug
As the title states. This makes serving the openapi.json from the root (/) problematic because the path matcher won't match ("//openapi.json").

To Reproduce
Run HTTP_PORT=8080 wick run examples/http/rest-router.wick and navigate to "127.0.0.1:8080/openapi-ui"

Expected behavior
The openapi works

Actual behavior
The openapi UI can't find //openapi.json

Environment:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions