oapi-codegen
oapi-codegen copied to clipboard
v0.124.0 of kin-openapi introduces compilation errors
As seen in https://github.com/deepmap/oapi-codegen/pull/1532
Raising this for an FYI for anyone who may see errors like the below in their own builds when updating kin-openapi:
/go/pkg/mod/github.com/deepmap/oapi-codegen/[email protected]/pkg/codegen/codegen.go:1070:12: cannot convert "object" (untyped string constant) to type *openapi3.Types
Absolutely fair for them to do this, as is their right in a pre-v1 release.
This will be fixed by the next release, but in the meantime, it may be worth not upgrading kin-openapi if you can avoid it, or once #1532 is merged, pin to HEAD.
Note that this will also require us bumping the middlewares, as each of them need to also be at a compatible kin-openapi version
https://github.com/getkin/kin-openapi/issues/939