source: trip-planner-front/node_modules/har-validator/node_modules/ajv/lib/dot/not.jst@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 861 bytes
Line 
1{{# def.definitions }}
2{{# def.errors }}
3{{# def.setupKeyword }}
4{{# def.setupNextLevel }}
5
6{{? {{# def.nonEmptySchema:$schema }} }}
7 {{
8 $it.schema = $schema;
9 $it.schemaPath = $schemaPath;
10 $it.errSchemaPath = $errSchemaPath;
11 }}
12
13 var {{=$errs}} = errors;
14
15 {{# def.setCompositeRule }}
16
17 {{
18 $it.createErrors = false;
19 var $allErrorsOption;
20 if ($it.opts.allErrors) {
21 $allErrorsOption = $it.opts.allErrors;
22 $it.opts.allErrors = false;
23 }
24 }}
25 {{= it.validate($it) }}
26 {{
27 $it.createErrors = true;
28 if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
29 }}
30
31 {{# def.resetCompositeRule }}
32
33 if ({{=$nextValid}}) {
34 {{# def.error:'not' }}
35 } else {
36 {{# def.resetErrors }}
37 {{? it.opts.allErrors }} } {{?}}
38{{??}}
39 {{# def.addError:'not' }}
40 {{? $breakOnError}}
41 if (false) {
42 {{?}}
43{{?}}
Note: See TracBrowser for help on using the repository browser.