function anonymous(self,RULES,formats,root,refVal,defaults,customRules,equal,ucs2length,ValidationError ) { var refVal1 = refVal[1]; var validate = function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; var vErrors = null; var errors = 0; if (rootData === undefined) rootData = data; var errs_1 = errors; var errs_2 = errors; if ((typeof data !== "number" || (data % 1) || data !== data)) { validate.errors = [ { keyword: 'type' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/type' , params: { type: 'integer' } , message: 'should be integer' } ]; return false; } if ((typeof data === "number")) { if ( data < 0 || data !== data) { validate.errors = [ { keyword: 'minimum' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/minimum' , params: { comparison: '>=', limit: 0, exclusive: false } , message: 'should be >= 0' } ]; return false; } else { } } if (errors === errs_2) { } var valid2 = errors === errs_2; if (valid2) { } if (errors === errs_1) { } var valid1 = errors === errs_1; if (valid1) { } if (errors === 0) { } validate.errors = vErrors; return errors === 0; }; return validate; }