1
|
{{# def.definitions }}
|
2
|
{{# def.errors }}
|
3
|
{{# def.setupKeyword }}
|
4
|
{{# def.setupNextLevel }}
|
5
|
|
6
|
{{
|
7
|
var $currentBaseId = $it.baseId
|
8
|
, $allSchemasEmpty = true;
|
9
|
}}
|
10
|
|
11
|
{{~ $schema:$sch:$i }}
|
12
|
{{? {{# def.nonEmptySchema:$sch }} }}
|
13
|
{{
|
14
|
$allSchemasEmpty = false;
|
15
|
$it.schema = $sch;
|
16
|
$it.schemaPath = $schemaPath + '[' + $i + ']';
|
17
|
$it.errSchemaPath = $errSchemaPath + '/' + $i;
|
18
|
}}
|
19
|
|
20
|
{{# def.insertSubschemaCode }}
|
21
|
|
22
|
{{# def.ifResultValid }}
|
23
|
{{?}}
|
24
|
{{~}}
|
25
|
|
26
|
{{? $breakOnError }}
|
27
|
{{? $allSchemasEmpty }}
|
28
|
if (true) {
|
29
|
{{??}}
|
30
|
{{= $closingBraces.slice(0,-1) }}
|
31
|
{{?}}
|
32
|
{{?}}
|
33
|
|
34
|
{{# def.cleanUp }}
|