JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2012326
  • Score
    100M100P100Q217885F
  • License BSD-3-Clause

Library to walk OAS 3 schema objects and call a callback

Package Exports

  • oas-schema-walker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (oas-schema-walker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

OAS-Schema-Walker

Functions

getDefaultState()

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

walkSchema(parent, state, callback,)

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

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

Param Description
parent the parent schema, if any. Use empty object if none
state the 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