Skip to content

Commit

Permalink
fix issue in locally referenced schema #57
Browse files Browse the repository at this point in the history
  • Loading branch information
theisuru committed Feb 4, 2023
1 parent ccb0c7b commit b7dc1d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/biovalidator-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit b7dc1d8

Please sign in to comment.