@hyperjump/json-schema 1.16.0 → 1.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/keywords/if.js
CHANGED
|
@@ -19,10 +19,12 @@ const interpret = ([schemaUrl, unevaluatedItems], instance, context) => {
|
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
const evaluatedItemsPlugin = new EvaluatedItemsPlugin(schemaUrl);
|
|
22
|
-
Validation.interpret(schemaUrl, instance, {
|
|
22
|
+
if (!Validation.interpret(schemaUrl, instance, {
|
|
23
23
|
...context,
|
|
24
24
|
plugins: [...context.ast.plugins, evaluatedItemsPlugin]
|
|
25
|
-
})
|
|
25
|
+
})) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
26
28
|
const evaluatedItems = evaluatedItemsPlugin.evaluatedItems;
|
|
27
29
|
|
|
28
30
|
let isValid = true;
|
|
@@ -19,10 +19,12 @@ const interpret = ([schemaUrl, unevaluatedProperties], instance, context) => {
|
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
const evaluatedPropertiesPlugin = new EvaluatedPropertiesPlugin(schemaUrl);
|
|
22
|
-
Validation.interpret(schemaUrl, instance, {
|
|
22
|
+
if (!Validation.interpret(schemaUrl, instance, {
|
|
23
23
|
...context,
|
|
24
24
|
plugins: [...context.ast.plugins, evaluatedPropertiesPlugin]
|
|
25
|
-
})
|
|
25
|
+
})) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
26
28
|
const evaluatedProperties = evaluatedPropertiesPlugin.evaluatedProperties;
|
|
27
29
|
|
|
28
30
|
let isValid = true;
|
package/package.json
CHANGED