Skip to content

Commit ff79822

Browse files
authored
fix: move ajv-draft-04 into usage location (#268)
1 parent 45fdd70 commit ff79822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validators/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

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

@@ -70,6 +69,7 @@ function initializeAjv (draft04 = true) {
7069
};
7170

7271
if (draft04) {
72+
const AjvDraft4 = require("ajv-draft-04");
7373
return new AjvDraft4(opts);
7474
}
7575

0 commit comments

Comments
 (0)