toolcraft-schema 0.0.328 → 0.0.330
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.
|
@@ -96,10 +96,10 @@ export function projectJsonSchemaProperties(schema, options = {}) {
|
|
|
96
96
|
visit(child);
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
for (const keyword of ["then", "else", "dependentSchemas"]) {
|
|
100
|
-
if (keyword === "dependentSchemas" && isObject(node.schema
|
|
101
|
-
for (const key of Object.keys(node.schema
|
|
102
|
-
const child = node.children.get(
|
|
99
|
+
for (const keyword of ["then", "else", "dependentSchemas", "dependencies"]) {
|
|
100
|
+
if ((keyword === "dependentSchemas" || keyword === "dependencies") && isObject(node.schema[keyword])) {
|
|
101
|
+
for (const key of Object.keys(node.schema[keyword])) {
|
|
102
|
+
const child = node.children.get(`${keyword}/${key}`);
|
|
103
103
|
if (child)
|
|
104
104
|
visit(child);
|
|
105
105
|
}
|