1.1.5 • Published 4 years ago

oas-schema-walker v1.1.5

Weekly downloads
249,761
License
BSD-3-Clause
Repository
github
Last release
4 years ago

OAS-Schema-Walker

Functions

getDefaultState() ⇒

obtains the default starting state for the state object used by walkSchema

Kind: global function Returns: the state object suitable for use in walkSchema

walkSchema(parent, state, callback,) ⇒

begins the walk of a schema object, or the state object used by walkSchema

Kind: global function Returns: the schema object

ParamDescription
parentthe parent schema, if any. Use empty object if none
statethe initial starting state of the walker, usually obtained from getDefaultState
callback,a function taking a schema, parent and state to be called on this and all subschemas