Skip to content

Commit

Permalink
fix: move ajv-draft-04 into usage location (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Feb 11, 2025
1 parent 45fdd70 commit ff79822
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 @@ -2,7 +2,6 @@

const util = require("../util");
const { ono } = require("@jsdevtools/ono");
const AjvDraft4 = require("ajv-draft-04");
const Ajv = require("ajv/dist/2020");
const { openapi } = require("@apidevtools/openapi-schemas");

Expand Down Expand Up @@ -70,6 +69,7 @@ function initializeAjv (draft04 = true) {
};

if (draft04) {
const AjvDraft4 = require("ajv-draft-04");
return new AjvDraft4(opts);
}

Expand Down

0 comments on commit ff79822

Please sign in to comment.