You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
629 B

4 years ago
  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 }}