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
34 lines
629 B
{{# 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 }}
|
|
|