Skip to content

Commit 3715fc4

Browse files
authored
Merge pull request #4637 from OAI/dev
v3.2-dev: update from dev
2 parents 6a4949a + 50bb009 commit 3715fc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/schema-test-coverage.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ const compiled = await compile(schema);
9595
/** @type Set<string> */
9696
const visitedLocations = new Set();
9797
const baseInterpret = Validation.interpret;
98-
Validation.interpret = (url, instance, ast, dynamicAnchors, quiet) => {
99-
if (Array.isArray(ast[url])) {
100-
for (const keywordNode of ast[url]) {
98+
Validation.interpret = (url, instance, context) => {
99+
if (Array.isArray(context.ast[url])) {
100+
for (const keywordNode of context.ast[url]) {
101101
if (Array.isArray(keywordNode)) {
102102
visitedLocations.add(keywordNode[1]);
103103
}
104104
}
105105
}
106-
return baseInterpret(url, instance, ast, dynamicAnchors, quiet);
106+
return baseInterpret(url, instance, context);
107107
};
108108

109109
await runTests(argv[3]);

0 commit comments

Comments
 (0)