oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

v0.124.0 of kin-openapi introduces compilation errors

Open jamietanna opened this issue 1 year ago • 1 comments

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.

jamietanna avatar Apr 08 '24 08:04 jamietanna

Note that this will also require us bumping the middlewares, as each of them need to also be at a compatible kin-openapi version

jamietanna avatar Apr 15 '24 09:04 jamietanna

https://github.com/getkin/kin-openapi/issues/939

jamietanna avatar May 29 '24 12:05 jamietanna