Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 460 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 460 Bytes

oas-validator

Usage:

var validator = require('oas-validator');
var 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
});
// also available is a synchronous validateSync method which returns a boolean

See here for complete documentation of the options object.