Repository navigation
v1.13.0
·
197 commits
to main
since this release
What's New
Reference Chain Tracking API
This release adds a new API for tracking reference resolution chains in JSON Schema, enabling callers to understand how nested $ref references were resolved and which schemas share common references.
New Methods on JSONSchema:
GetReferenceChain()- Returns the full chain of references from outermost (top-level parent) to innermost (immediate parent)GetImmediateReference()- Returns just the immediate parent reference that resolved to this schemaGetTopLevelReference()- Returns the outermost reference that started the resolution chain
Each method returns ReferenceChainEntry containing both the referencing schema and its $ref value.
Example
For a response schema referencing Schema1, which in turn references SchemaShared:
Response → Schema1 → SchemaShared
Calling GetReferenceChain() on the resolved SchemaShared returns:
- Response schema with reference
"#/components/schemas/Schema1" - Schema1 with reference
"#/components/schemas/SchemaShared"
Full Changelog
- feat: add reference chain tracking API for nested schema references (#119)
OpenAPI CLI v1.13.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
Others
- f38f2bd build(deps): bump jsonschema/oas3/tests/testsuite (#118)
- b4c15d7 chore(cmd): update openapi dependency to latest main (#117)
Full Changelog: v1.12.8...v1.13.0
Released by GoReleaser.