Skip to content

Commit

Permalink
refactor: update 3.1 to use jsonSchema without dynamicRef
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenyong committed May 23, 2024
1 parent b87bf0a commit 4a3fef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validators/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function validateSchema(api, options) {
schema = openapi.v2;
ajv = initializeAjv();
} else if (api.openapi.startsWith('3.1')) {
schema = openapi.v31;
schema = openapi.v31legacy;

// There's a bug with Ajv in how it handles `$dynamicRef` in the way that it's used within the 3.1 schema so we
// need to do some adhoc workarounds.
Expand Down

0 comments on commit 4a3fef8

Please sign in to comment.