oas-schema-walker

JSON →
library 1.1.5 ·javascript
verified Jun 7, 2026

A lightweight utility (v1.1.5, stable, infrequent releases) for recursively walking OpenAPI 3.0 schema objects and applying a callback to each subschema. Unlike general JSON-schema traversal libraries, it is optimized for OAS 3 schemas, handling only local references and providing a persistent state object for tracking recursion depth and visited nodes. Key differentiators: minimal dependencies, no external schema resolution, and a simple callback-based API for schema transformation or validation.