Skip to content

Sub path support #11

Open
Open
@yosiat

Description

@yosiat

Hi,

I am using this middleware and I am mounting my api server under specific sub-path (using echo.Group("/subpath")), when using the subpath I am getting an error of no matching operation was found.

Without the sub-path it works.

Looks like it's happening because we are constructing a new router with gorillamux and not re-using existing router.

Any idea on how to overcome this issue?

Activity

GreyXor

GreyXor commented on Feb 21, 2024

@GreyXor

I also try to have my api under /api but then all my other endpoint doesn't pass the validation because /foo for example, is not in my api definition.

GreyXor

GreyXor commented on Feb 22, 2024

@GreyXor

hello @yosiat, would you try my PR and tell me if that fit your needs ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @yosiat@GreyXor

      Issue actions

        Sub path support · Issue #11 · oapi-codegen/echo-middleware