grokify / spectrum

OpenAPI Spec SDK and Converter for OpenAPI 3.0 and 2.0 Specs to Postman 2.0 Collections. Example RingCentral spec included.
https://pkg.go.dev/github.com/grokify/spectrum
MIT License
113 stars 28 forks source link

Breaking changes in `kin-openapi` v0.120.0 - upgrade Go min version to 1.20 #113

Closed grokify closed 1 year ago

grokify commented 1 year ago

Upgrading getkin/openapi is failing.

https://github.com/grokify/spectrum/pull/112

The error is:

https://github.com/grokify/spectrum/actions/runs/6124055765/job/16623279560?pr=112

Error: ../../../go/pkg/mod/github.com/getkin/kin-openapi@v0.120.0/openapi3/schema.go:1989:32: compiledPatterns.CompareAndSwap undefined (type sync.Map has no field or method CompareAndSwap)
note: module requires Go 1.20
grokify commented 1 year ago

Fixed in bf2e2cbd101ed35dd15f3004fd40877df85c1dc1