ajv/lib/dot/not.jst

44 lines
861 B
Plaintext
Raw Normal View History

{{# def.definitions }}
2015-12-12 16:41:51 +03:00
{{# def.errors }}
2015-12-22 20:03:09 +03:00
{{# def.setupKeyword }}
{{# def.setupNextLevel }}
{{? {{# def.nonEmptySchema:$schema }} }}
{{
$it.schema = $schema;
$it.schemaPath = $schemaPath;
2015-12-19 13:52:39 +03:00
$it.errSchemaPath = $errSchemaPath;
}}
2015-05-30 23:08:31 +03:00
var {{=$errs}} = errors;
2015-06-02 03:59:32 +03:00
{{# def.setCompositeRule }}
{{
$it.createErrors = false;
var $allErrorsOption;
if ($it.opts.allErrors) {
$allErrorsOption = $it.opts.allErrors;
$it.opts.allErrors = false;
}
}}
{{= it.validate($it) }}
{{
$it.createErrors = true;
if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
}}
2015-05-30 23:08:31 +03:00
{{# def.resetCompositeRule }}
2016-12-24 01:02:41 +03:00
if ({{=$nextValid}}) {
{{# def.error:'not' }}
} else {
2015-12-12 16:41:51 +03:00
{{# def.resetErrors }}
{{? it.opts.allErrors }} } {{?}}
{{??}}
2015-08-16 03:21:35 +03:00
{{# def.addError:'not' }}
{{? $breakOnError}}
if (false) {
{{?}}
{{?}}