You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
548 B
14 lines
548 B
'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); |
|
};
|
|
|