summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/ajv/lib/dotjs/allOf.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/ajv/lib/dotjs/allOf.js')
-rw-r--r--tools/node_modules/eslint/node_modules/ajv/lib/dotjs/allOf.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node_modules/eslint/node_modules/ajv/lib/dotjs/allOf.js b/tools/node_modules/eslint/node_modules/ajv/lib/dotjs/allOf.js
index 5107b18cfc..4bad914d60 100644
--- a/tools/node_modules/eslint/node_modules/ajv/lib/dotjs/allOf.js
+++ b/tools/node_modules/eslint/node_modules/ajv/lib/dotjs/allOf.js
@@ -17,7 +17,7 @@ module.exports = function generate_allOf(it, $keyword, $ruleType) {
l1 = arr1.length - 1;
while ($i < l1) {
$sch = arr1[$i += 1];
- if (it.util.schemaHasRules($sch, it.RULES.all)) {
+ if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
$allSchemasEmpty = false;
$it.schema = $sch;
$it.schemaPath = $schemaPath + '[' + $i + ']';