3 {{# def.setupKeyword }}
4 {{# def.setupNextLevel }}
6 {{? {{# def.nonEmptySchema:$schema }} }}
9 $it.schemaPath = $schemaPath;
10 $it.errSchemaPath = $errSchemaPath;
13 var {{=$errs}} = errors;
15 {{# def.setCompositeRule }}
18 $it.createErrors = false;
20 if ($it.opts.allErrors) {
21 $allErrorsOption = $it.opts.allErrors;
22 $it.opts.allErrors = false;
25 {{= it.validate($it) }}
27 $it.createErrors = true;
28 if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
31 {{# def.resetCompositeRule }}
33 if ({{=$nextValid}}) {
34 {{# def.error:'not' }}
36 {{# def.resetErrors }}
37 {{? it.opts.allErrors }} } {{?}}
39 {{# def.addError:'not' }}