grokify/spectrum

Breaking changes in `kin-openapi` v0.61.0 - change name of primary struct

grokify opened this issue · 1 comments

github.com/getkin/kin-openapi v0.61.0 renames openapi3.Swagger to openapi3.T.

  1. https://github.com/getkin/kin-openapi/releases/tag/v0.61.0
  2. getkin/kin-openapi#351

Other method that need to be updated:

  1. openapi3.Swagger to openapi3.T
  2. NewSwaggerLoader().LoadSwaggerFromData(bytes) to NewLoader().LoadFromData(bytes)
  3. github.com/getkin/kin-openapi/openapi2conv.ToV3Swagger to github.com/getkin/kin-openapi/openapi2conv.ToV3

Closed in a4be5b6

openapi3.T is an undesirable name for search so the alias type Spec = oas3.T has been added to openapi3 with a similar one for openapi2.