aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ajv/lib/dot/validate.jst
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/ajv/lib/dot/validate.jst')
-rw-r--r--node_modules/ajv/lib/dot/validate.jst4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/ajv/lib/dot/validate.jst b/node_modules/ajv/lib/dot/validate.jst
index f216864a0..896e0860a 100644
--- a/node_modules/ajv/lib/dot/validate.jst
+++ b/node_modules/ajv/lib/dot/validate.jst
@@ -141,7 +141,7 @@
{{?}}
{{? $rulesGroup.type }}
}
- {{? $typeSchema && $typeSchema === $rulesGroup.type }}
+ {{? $typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes }}
{{ var $typeChecked = true; }}
else {
{{
@@ -161,7 +161,7 @@
{{~}}
{{?}}
-{{? $typeSchema && !$typeChecked && !(it.opts.coerceTypes && $coerceToTypes) }}
+{{? $typeSchema && !$typeChecked && !$coerceToTypes }}
{{# def.checkType }}
{{# def.error:'type' }}
}