Skip to content

Commit 2aef107

Browse files
committed
feat: make getMatchingSchemas return keys matching propertyNames schema
1 parent 82a2d01 commit 2aef107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/jsonParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ function validate(n: ASTNode | undefined, schema: JSONSchema, validationResult:
10951095
for (const f of node.properties) {
10961096
const key = f.keyNode;
10971097
if (key) {
1098-
validate(key, propertyNames, validationResult, NoOpSchemaCollector.instance, context);
1098+
validate(key, propertyNames, validationResult, matchingSchemas, context);
10991099
}
11001100
}
11011101
}

0 commit comments

Comments
 (0)