You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
soodpr's example is based on echo, but this issue is also present with gin. It seems that the code generator needs to update its SwaggerUriToGinUri and SwaggerUriToEchoUri methods to include escaping the literal colon characters.
I believe such an update would not take very long to implement and I would be willing to submit an PR for it if doing so helps speed up getting the fix in.
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.
The text was updated successfully, but these errors were encountered: