aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/build-libs.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev/build-libs.js b/dev/build-libs.js
index 5caabec7..c3994ab3 100644
--- a/dev/build-libs.js
+++ b/dev/build-libs.js
@@ -60,7 +60,11 @@ export async function buildLibs() {
const schemaDir = path.join(extDir, 'data/schemas/');
const schemaFileNames = fs.readdirSync(schemaDir);
const schemas = schemaFileNames.map((schemaFileName) => JSON.parse(fs.readFileSync(path.join(schemaDir, schemaFileName), {encoding: 'utf8'})));
- const ajv = new Ajv({schemas: schemas, code: {source: true, esm: true}});
+ const ajv = new Ajv({
+ schemas,
+ code: {source: true, esm: true},
+ allowUnionTypes: true
+ });
const moduleCode = standaloneCode(ajv);
// https://github.com/ajv-validator/ajv/issues/2209