Skip to content

v0.42.0

Choose a tag to compare

@daveshanley daveshanley released this 01 Nov 00:36
· 61 commits to main since this release

This release improves reference resolution, bundling, and schema comparison across OpenAPI and Swagger documents. It fixes missing schema fields, incomplete bundles, incorrect circular-reference paths, and recursive comparisons that could panic or stall. It also fixes a shared-index race affecting Vacuum when multiple documents use the same cached filesystem.

Compatibility has been verified against unmodified Vacuum and openapi-changes, including full test suites, targeted race checks, and CLI runs across six real-world specifications. Linux, Windows, and the full library race suite pass, with 100% project and patch coverage. Benchmarks show faster indexing and comparison overall, though gains vary by specification and operation.

  • Reference handling: resolve external schemas and Swagger path items in their owning documents; preserve aliases, discriminator mappings, and encoded paths during bundling.
  • More accurate comparisons: count allOf breaking changes once and include changes inside retargeted references. Reports and change totals can differ from earlier releases.
  • Bounded alias expansion: excessive YAML alias expansion now returns an error. Set AllowExcessiveAliases for trusted documents that require it; cycle detection remains enabled.
  • Clearer cycle failures: reference-only cycles now return build errors instead of incomplete models or hangs.
  • Go compatibility note: empty schema-change maps may now be nil. Reading and iterating remain safe; initialize them before writing directly.

@CaliLuke @josephaxisa @madesst