Pathologic was missing because of a .git folder inside.
[yaffs-website] / node_modules / ajv / lib / dot / missing.def
1 {{## def.checkMissingProperty:_properties:
2   {{~ _properties:_$property:$i }}
3     {{?$i}} || {{?}}
4     {{ var $prop = it.util.getProperty(_$property); }}
5     ( {{=$data}}{{=$prop}} === undefined && (missing{{=$lvl}} = {{= it.util.toQuotedString(it.opts.jsonPointers ? _$property : $prop) }}) )
6   {{~}}
7 #}}
8
9
10 {{## def.errorMissingProperty:_error:
11   {{
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;
18     }
19   }}
20   {{# def.error:_error }}
21 #}}
22
23 {{## def.allErrorsMissingProperty:_error:
24   {{
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);
29     }
30   }}
31   if ({{=$data}}{{=$prop}} === undefined) {
32     {{# def.addError:_error }}
33   }
34 #}}