Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 379 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 379 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