Blame view

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