3 {{# def.setupKeyword }}
4 {{# def.setupNextLevel }}
6 var {{=$errs}} = errors;
8 {{? {{# def.nonEmptySchema:$schema }} }}
11 $it.schemaPath = $schemaPath;
12 $it.errSchemaPath = $errSchemaPath;
16 var $key = 'key' + $lvl
19 , $invalidName = '\' + ' + $key + ' + \''
20 , $dataNxt = $it.dataLevel = it.dataLevel + 1
21 , $nextData = 'data' + $dataNxt
22 , $dataProperties = 'dataProperties' + $lvl
23 , $ownProperties = it.opts.ownProperties
24 , $currentBaseId = it.baseId;
28 var {{=$dataProperties}} = undefined;
30 {{# def.iterateProperties }}
31 var startErrs{{=$lvl}} = errors;
33 {{ var $passData = $key; }}
34 {{# def.setCompositeRule }}
35 {{# def.generateSubschemaCode }}
36 {{# def.optimizeValidate }}
37 {{# def.resetCompositeRule }}
39 if (!{{=$nextValid}}) {
40 for (var {{=$i}}=startErrs{{=$lvl}}; {{=$i}}<errors; {{=$i}}++) {
41 vErrors[{{=$i}}].propertyName = {{=$key}};
43 {{# def.extraError:'propertyNames' }}
44 {{? $breakOnError }} break; {{?}}
51 if ({{=$errs}} == errors) {