validate sarif against schema before uploading

This commit is contained in:
Robert Brignull 2020-05-15 17:22:59 +01:00
parent ff40939f66
commit ddee374101
21 changed files with 5736 additions and 3 deletions

14
node_modules/jsonschema/lib/index.js generated vendored Normal file
View file

@ -0,0 +1,14 @@
'use strict';
var Validator = module.exports.Validator = require('./validator');
module.exports.ValidatorResult = require('./helpers').ValidatorResult;
module.exports.ValidationError = require('./helpers').ValidationError;
module.exports.SchemaError = require('./helpers').SchemaError;
module.exports.SchemaScanResult = require('./scan').SchemaScanResult;
module.exports.scan = require('./scan').scan;
module.exports.validate = function (instance, schema, options) {
var v = new Validator();
return v.validate(instance, schema, options);
};