New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.8.0 routing errors, whilst v1.7.1 does not #397
Comments
This has been fixed in getkin/kin-openapi#410. I verified it by upgrading to v0.86.0 |
closing since fixed, thanks for the input. |
Not sure it should be closed, since oapi-codegen's go.mod still refers to the broken version. |
Oh damn, you're right, I'll keep this open and let gh autoclose on PR merge |
When will it be merged or better update version to 0.87.0 already ? |
Updated #503 to use 0.87 |
thanks for getting a fix out! Would love to see this merged in as I'm facing a similar issue. |
When using
github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.7.1
, as agithub.com/chi/go-chi
middleware like soThe path validation works as intended, but not when using v1.8.0.
Here is how the handlers are mounted
The openAPI file doesn't contain any server information, and should just use the BaseURL as a mounting point, which they do.
1.7.1
1.8.0
How to reproduce
Command:
oapi-codegen -generate chi-server,spec,types -package main api.yaml > api.gen.go
main.go
api.yaml
The text was updated successfully, but these errors were encountered: