json-schema-traverse

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

Traverse JSON Schema objects, calling a callback for each schema node (including the root) in a depth-first pre-order or with separate pre/post callbacks. v1.0.0 is stable and widely used, with no known breaking changes since v0. Present in many JSON Schema validation pipelines (e.g., Ajv). Differentiates from generic object traversal by resolving JSON Pointers and parent schema context. Ships TypeScript declarations. Low release cadence.