Skip to content

v0..41.7

Choose a tag to compare

@daveshanley daveshanley released this 24 Oct 13:28
· 108 commits to main since this release

v0.41.7

This one stings a bit. With quick hash on (openapi-changes turns it on), a single circular reference made libopenapi treat every schema in the document as circular. Changes just vanished. I ran stripe.yaml against a copy with 300 breaking edits and got back zero. Zero.

Fixed. All 300 show up now. Big thanks to the contributors who chased down this one and three more. You lot are the best.

  • Circular refs only flag schemas on a loop (#667, fixes #662). Quick-hash diffs on documents with cycles report what they were missing.
  • No race when building from YAML merges (#658, fixes #657). Model building reads merged copies and leaves shared nodes alone. New public helper: utils.ResolveMergeNodes.
  • Float-tagged int64 keywords read correctly (#666, fixes #665). maxLength: 2.0 stops turning into 0. Huge values clamp, fractions stay unset.
  • Parameter $ref found at any key position (#660, fixes #659). No more bogus "has no name value" errors in OpenAPI 3.1.
  • Less hashing work (#664). Fewer redundant hashes, plus a new NodeMap.GetNodeLines().
  • Dependency bump. golang.org/x/sync goes to 0.24.0.

Upgrade, especially if you diff specs with cycles. Much more to come.

@CaliLuke @josephaxisa @navaneethan-ac9 @TastyHeadphones