From b7dc1d8bcb5af9324765b0e1c00f79b23454ea8b Mon Sep 17 00:00:00 2001 From: Isuru Liyanage Date: Sat, 4 Feb 2023 10:32:19 +0000 Subject: [PATCH] fix issue in locally referenced schema #57 --- src/core/biovalidator-core.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/biovalidator-core.js b/src/core/biovalidator-core.js index e4a7d3a..3aafff5 100644 --- a/src/core/biovalidator-core.js +++ b/src/core/biovalidator-core.js @@ -185,6 +185,7 @@ class BioValidator { let schemaFiles = getFiles(localSchemaPath); for (let file of schemaFiles) { let schema = readFile(file); + this._insertAsyncToSchemasAndDefs(schema); ajv.getSchema(schema["$id"] || ajv.compile(schema)); // add to AJV cache if not already present this.referencedSchemaCache[schema["$id"]] = schema; logger.info("Adding compiled local schema to cache: " + schema["$id"])