12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {{
- {{
- {{
- {{
- {{
- {{
- $it.schema = it.schema['_clause'];
- $it.schemaPath = it.schemaPath + '._clause';
- $it.errSchemaPath = it.errSchemaPath + '/_clause';
- }}
- {{
- {{=$valid}} = {{=$nextValid}};
- {{? $thenPresent && $elsePresent }}
- {{ $ifClause = 'ifClause' + $lvl; }}
- var {{=$ifClause}} = '_clause';
- {{??}}
- {{ $ifClause = '\'_clause\''; }}
- {{?}}
- {{
- var $thenSch = it.schema['then']
- , $elseSch = it.schema['else']
- , $thenPresent = $thenSch !== undefined && {{
- , $elsePresent = $elseSch !== undefined && {{
- , $currentBaseId = $it.baseId;
- }}
- {{? $thenPresent || $elsePresent }}
- {{
- var $ifClause;
- $it.createErrors = false;
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- }}
- var {{=$errs}} = errors;
- var {{=$valid}} = true;
- {{
- {{
- {{ $it.createErrors = true; }}
- {{
- {{
- {{? $thenPresent }}
- if ({{=$nextValid}}) {
- {{
- }
- {{? $elsePresent }}
- else {
- {{?}}
- {{??}}
- if (!{{=$nextValid}}) {
- {{?}}
- {{? $elsePresent }}
- {{
- }
- {{?}}
- if (!{{=$valid}}) {
- {{
- }
- {{? $breakOnError }} else { {{?}}
- {{??}}
- {{? $breakOnError }}
- if (true) {
- {{?}}
- {{?}}
|