forked from ebdrup/json-schema-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
33 lines (31 loc) · 759 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const testRunner = require("./testRunner");
const validators = require("./validators");
(async () => {
const draft07Validators = await validators(
"http://json-schema.org/draft-07/schema",
"7"
);
const draft06Validators = await validators(
"http://json-schema.org/draft-06/schema",
"6"
);
const draft04Validators = await validators(
"http://json-schema.org/draft-04/schema",
"4"
);
await testRunner({
validators: draft07Validators,
schemaVersion: "draft7",
folder: "",
});
await testRunner({
validators: draft06Validators,
schemaVersion: "draft6",
folder: "draft6",
});
await testRunner({
validators: draft04Validators,
schemaVersion: "draft4",
folder: "draft4",
});
})();