5.0.2 • Published 4 years ago

@kaishuu0123/oas-validator v5.0.2

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

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.