Traverse JSON Schema from bottom up. Allows altering of structure or reformatting
to match other schema formats, even if the structure is immutable, as values
return in onNode
callback will be placed at the node's position in a newly
formatted structure.
Given the following schema:
const SCHEMA = type: 'object' properties: title: type: 'string' actors: type: 'array' items: type: 'object' properties: name: type: 'string' gender: type: 'string' ;
$ npm install --save jsonschema-nodewalker
const walkNodes = ;
To simply walk the nodes, we call:
;