Skip to content

Commit b23f8f2

Browse files
committed
Fix bug in definition usage of excludedPathMatcher. fix #5
1 parent 3087ae7 commit b23f8f2

2 files changed

Lines changed: 1136 additions & 1387 deletions

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class OpenApiValidator {
8181
$ref.value = cloneDeep(await schemaOrPath);
8282
$ref.pathType = 'http';
8383
handler.schema = $ref.value;
84-
dereference(handler, { parse: {}, dereference: {} });
84+
dereference(handler, { parse: {}, dereference: { excludedPathMatcher: () => false } });
8585
return Object.assign(handler.schema);
8686
}
8787

0 commit comments

Comments
 (0)