Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

oas-validator

4.0.8 • Public • Published

oas-validator

Usage:

const validator = require('oas-validator');
const options = {};
validator.validate(openapi, options, function(err, options){
  // options.valid contains the result of the validation
  // options.context now contains a stack (array) of JSON-Pointer strings
});

If the callback argument of validate is omitted, a Promise is returned instead.

See here for complete documentation of the options object.

Install

npm i oas-validator

DownloadsWeekly Downloads

175,968

Version

4.0.8

License

BSD-3-Clause

Unpacked Size

108 kB

Total Files

6

Last publish

Collaborators

  • avatar