summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/har-validator/node_modules/ajv/lib/dot/not.jst
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/har-validator/node_modules/ajv/lib/dot/not.jst')
-rw-r--r--deps/npm/node_modules/har-validator/node_modules/ajv/lib/dot/not.jst43
1 files changed, 43 insertions, 0 deletions
diff --git a/deps/npm/node_modules/har-validator/node_modules/ajv/lib/dot/not.jst b/deps/npm/node_modules/har-validator/node_modules/ajv/lib/dot/not.jst
new file mode 100644
index 0000000000..e03185ae87
--- /dev/null
+++ b/deps/npm/node_modules/har-validator/node_modules/ajv/lib/dot/not.jst
@@ -0,0 +1,43 @@
+{{# def.definitions }}
+{{# def.errors }}
+{{# def.setupKeyword }}
+{{# def.setupNextLevel }}
+
+{{? {{# def.nonEmptySchema:$schema }} }}
+ {{
+ $it.schema = $schema;
+ $it.schemaPath = $schemaPath;
+ $it.errSchemaPath = $errSchemaPath;
+ }}
+
+ var {{=$errs}} = errors;
+
+ {{# 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;
+ }}
+
+ {{# def.resetCompositeRule }}
+
+ if ({{=$nextValid}}) {
+ {{# def.error:'not' }}
+ } else {
+ {{# def.resetErrors }}
+ {{? it.opts.allErrors }} } {{?}}
+{{??}}
+ {{# def.addError:'not' }}
+ {{? $breakOnError}}
+ if (false) {
+ {{?}}
+{{?}}