Socket
Socket
Sign inDemoInstall

oas-schema-walker

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    oas-schema-walker

Library to walk OAS 3 schema objects and call a callback


Version published
Weekly downloads
1.3M
increased by1.23%
Maintainers
1
Install size
8.31 kB
Created
Weekly downloads
 

Readme

Source

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

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

Keywords

FAQs

Last updated on 31 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc