Skip to content

v0.15.1

Choose a tag to compare

@mertcanaltin mertcanaltin released this 23 May 14:59
· 37 commits to master since this release

Two correctness fixes for cross-schema $ref.

  • Coercion, defaults and removeAdditional now follow a $ref to the referenced shape, so shared route schemas like params: { $ref: 'shared#' } and property refs like { id: { $ref: 'shared#/properties/id' } } get preprocessed instead of skipped.
  • The compile cache now keys on referenced schema content, not just the $id. Two validators sharing a root schema and an $id that points at different schemas no longer reuse the wrong compiled function.