您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.js 432B

123456789101112
  1. 'use strict';
  2. var Validator = module.exports.Validator = require('./validator');
  3. module.exports.ValidatorResult = require('./helpers').ValidatorResult;
  4. module.exports.ValidationError = require('./helpers').ValidationError;
  5. module.exports.SchemaError = require('./helpers').SchemaError;
  6. module.exports.validate = function (instance, schema, options) {
  7. var v = new Validator();
  8. return v.validate(instance, schema, options);
  9. };