Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it(swagger + ' should have valid examples.', function (done) {
oav.validateExamples(swagger, null, {consoleLogLevel: 'error'}).then(function (validationResult) {
//console.dir(validationResult, {depth: null, colors: true});
done(assert(validationResult.validityStatus === true, `swagger "${swagger}" contains model validation errors.`));
}).catch(function (err) {
console.dir(err, {depth: null, colors: true});
done(err);
});
});
}).value();