Skip to content

v1.14.0

Choose a tag to compare

@TristanSpeakEasy TristanSpeakEasy released this 07 Jan 05:00
· 192 commits to main since this release
c60b597

New Features

JSON Schema $id and $anchor Reference Resolution (#123)

Implements full JSON Schema $id and $anchor reference resolution for OpenAPI 3.1+ documents. This enables proper resolution of references that use $id URIs (absolute or relative) and $anchor fragment identifiers within JSON Schema definitions.

Capabilities

  • $id Resolution: Resolve references to $id URIs within the same document or across external documents
  • Relative $id Handling: Properly resolve relative $id URIs that build on parent base URIs
  • $anchor Resolution: Resolve fragment identifiers like #my-anchor to schemas with matching $anchor values
  • Nested Reference Rebasing: Correctly rebase nested references relative to their containing $id scope

Implementation Details

Introduced a Schema Registry system that:

  • Registers schemas with $id and $anchor during document population for O(1) lookups
  • Computes effective base URIs for each schema, properly handling relative $id resolution
  • Resolves references via the registry when standard JSON Pointer resolution fails
  • Maintains circular reference detection for registry-resolved references

No Breaking Changes

The new functionality is additive and fully backward compatible.

OpenAPI CLI v1.14.0

This release includes binaries for Linux, macOS, and Windows on both x86_64 and ARM64 architectures.

Installation

Download the appropriate binary for your platform from the assets below, extract it, and add it to your PATH.

Changes

Changelog

Features

  • 58b79e9 feat: add support for $id and $anchor reference resolution (#123)

Others

  • 59985e9 build(deps): bump jsonschema/oas3/tests/testsuite (#122)
  • c60b597 chore(cmd): update openapi dependency to latest main (#124)

Full Changelog: v1.13.1...v1.14.0

Released by GoReleaser.