Skip to content

Commit

Permalink
fix(update): support overwriting nested map paths
Browse files Browse the repository at this point in the history
Fix #10485
  • Loading branch information
vkarpov15 committed Jul 28, 2021
1 parent 926533f commit b6beb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -2036,7 +2036,7 @@ Schema.prototype._getSchema = function(path) {
}
} else if (foundschema.$isSchemaMap) {
if (p + 1 >= parts.length) {
return foundschema.$__schemaType;
return foundschema;
}
const ret = search(parts.slice(p + 1), foundschema.$__schemaType.schema);
return ret;
Expand Down

0 comments on commit b6beb3e

Please sign in to comment.