Skip to content

Generated client is not working when there are more than one API's with the colon in the API path #1726

Description

@soodpr

There seems to be a bug if the API spec contains more than one API's with colon in the API Path, it always return the response of 1st API.
I have put an example in this repo here: https://github.com/soodpr/oapi-codegen-bug

If we run both server and client code in the above example, the expected output from the client main program is that it first calls the /pets:validate and then /pets:generate API but in reality, its always end up calling /pets:validate API twice.

Let me know if you require any further details on this.

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