Skip to content

Commit

Permalink
feat(resolver): limit depth of dereference to max 100
Browse files Browse the repository at this point in the history
This change is specific to OpenAPI 3.1.0 strategy.
  • Loading branch information
char0n committed Jan 23, 2023
1 parent 34f8a4b commit 09c589a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/resolver/strategies/openapi-3-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const resolveOpenAPI31Strategy = async (options) => {
],
},
dereference: {
maxDepth: 100,
strategies: [
OpenApi3_1SwaggerClientDereferenceStrategy({
allowMetaPatches,
Expand Down

0 comments on commit 09c589a

Please sign in to comment.