1 {{## def.checkMissingProperty:_properties:
2 {{~ _properties:_$property:$i }}
4 {{ var $prop = it.util.getProperty(_$property); }}
5 ( {{=$data}}{{=$prop}} === undefined && (missing{{=$lvl}} = {{= it.util.toQuotedString(it.opts.jsonPointers ? _$property : $prop) }}) )
10 {{## def.errorMissingProperty:_error:
12 var $propertyPath = 'missing' + $lvl
13 , $missingProperty = '\' + ' + $propertyPath + ' + \'';
14 if (it.opts._errorDataPathProperty) {
15 it.errorPath = it.opts.jsonPointers
16 ? it.util.getPathExpr($currentErrorPath, $propertyPath, true)
17 : $currentErrorPath + ' + ' + $propertyPath;
20 {{# def.error:_error }}
23 {{## def.allErrorsMissingProperty:_error:
25 var $prop = it.util.getProperty($reqProperty)
26 , $missingProperty = it.util.escapeQuotes($reqProperty);
27 if (it.opts._errorDataPathProperty) {
28 it.errorPath = it.util.getPath($currentErrorPath, $reqProperty, it.opts.jsonPointers);
31 if ({{=$data}}{{=$prop}} === undefined) {
32 {{# def.addError:_error }}