2015-06-03 03:36:59 +03:00
|
|
|
{{# def.definitions }}
|
2015-12-12 16:41:51 +03:00
|
|
|
{{# def.errors }}
|
2015-12-22 20:03:09 +03:00
|
|
|
{{# def.setupKeyword }}
|
2015-06-03 03:36:59 +03:00
|
|
|
{{# def.setupNextLevel }}
|
2015-05-28 03:24:42 +03:00
|
|
|
|
2015-06-03 03:36:59 +03:00
|
|
|
{{~ $schema:$sch:$i }}
|
2015-06-13 00:10:56 +03:00
|
|
|
{{? {{# def.nonEmptySchema:$sch }} }}
|
|
|
|
{{
|
|
|
|
$it.schema = $sch;
|
|
|
|
$it.schemaPath = $schemaPath + '[' + $i + ']';
|
2015-12-19 13:52:39 +03:00
|
|
|
$it.errSchemaPath = $errSchemaPath + '/' + $i;
|
2015-06-13 00:10:56 +03:00
|
|
|
}}
|
2015-05-28 03:24:42 +03:00
|
|
|
|
2015-06-13 00:10:56 +03:00
|
|
|
{{= it.validate($it) }}
|
2015-06-04 02:17:33 +03:00
|
|
|
|
2015-12-12 16:41:51 +03:00
|
|
|
{{# def.ifResultValid }}
|
2015-06-12 13:43:41 +03:00
|
|
|
{{?}}
|
2015-05-31 23:46:25 +03:00
|
|
|
{{~}}
|
|
|
|
|
2015-06-12 13:43:41 +03:00
|
|
|
{{? $breakOnError }}
|
2015-12-12 21:14:53 +03:00
|
|
|
{{= $closingBraces.slice(0,-1) }}
|
2015-06-12 13:43:41 +03:00
|
|
|
{{?}}
|
|
|
|
|
|
|
|
{{# def.cleanUp }}
|