main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
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.