allOf.jst 629 B

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