diff --git a/src/js/Node.js b/src/js/Node.js index 0495e64..e3a9d4b 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -2056,13 +2056,13 @@ Node._findSchema = function (schema, path) { if (typeof key === 'string' && childSchema.properties) { childSchema = childSchema.properties[key] || null; if (childSchema) { - foundSchema = childSchema; + foundSchema = Node._findSchema(childSchema, path.slice(i, path.length)); } } else if (typeof key === 'number' && childSchema.items) { childSchema = childSchema.items; if (childSchema) { - foundSchema = childSchema; + foundSchema = Node._findSchema(childSchema, path.slice(i, path.length)); } } }