Skip to content

Commit 548474f

Browse files
author
Nik
committed
AIS Etappe 1: fix: use AJV draft 2020 validator
1 parent 3193b59 commit 548474f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/ais/backend/src/schemas.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require("fs");
22
const path = require("path");
3-
const Ajv = require("ajv");
3+
const Ajv2020 = require("ajv/dist/2020");
44
const addFormats = require("ajv-formats");
55

66
const SCHEMA_DIR = process.env.SCHEMAS_DIR || "/app/schemas";
@@ -15,7 +15,7 @@ function readSchema(fileName) {
1515
return JSON.parse(fs.readFileSync(filePath, "utf8"));
1616
}
1717

18-
const ajv = new Ajv({
18+
const ajv = new Ajv2020({
1919
allErrors: true,
2020
strict: false
2121
});

0 commit comments

Comments
 (0)