function anonymous(self,RULES,formats,root,refVal,defaults,customRules,equal,ucs2length,ValidationError ) { var refVal0 = refVal[0];var refVal1 = refVal[1];var refVal2 = refVal[2]; var validate = function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; var vErrors = null; var errors = 0; if (rootData === undefined) rootData = data; if (Array.isArray(data)) { if ( data.length < 1) { validate.errors = [ { keyword: 'minItems' , dataPath: (dataPath || '') + "" , schemaPath: '#/minItems' , params: { limit: 1 } , message: 'should NOT have fewer than 1 items' } ]; return false; } else { var errs__0 = errors;var valid0; for (var i0 = 0; i0 < data.length; i0++) { var errs_1 = errors; if (! root.refVal[0]( data[i0], (dataPath || '') + '[' + i0 + ']' , data , i0, rootData) ) { if (vErrors === null) vErrors = root.refVal[0].errors; else vErrors = vErrors.concat(root.refVal[0].errors); errors = vErrors.length; } else { } if (errors === errs_1) { } var valid1 = errors === errs_1; if (!valid1) break; } if (errs__0 == errors) { }} } else { validate.errors = [ { keyword: 'type' , dataPath: (dataPath || '') + "" , schemaPath: '#/type' , params: { type: 'array' } , message: 'should be array' } ]; return false; } if (errors === 0) { } validate.errors = vErrors; return errors === 0; }; return validate; }