From da2660a61dbda82199a7ed9aeeaab110a0468db9 Mon Sep 17 00:00:00 2001 From: Joshua Garde Date: Sun, 6 Aug 2023 19:16:17 -0700 Subject: [PATCH] Fix path resolution --- lib/utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utilities.js b/lib/utilities.js index 320af4a..e815e1f 100644 --- a/lib/utilities.js +++ b/lib/utilities.js @@ -58,8 +58,8 @@ export default class Utilities { continue; } - const path = path.resolve(schemaPath, entry.name); - const schema = JSON.parse(await fs.readFile(path)); + const filePath = path.resolve(schemaPath, entry.name); + const schema = JSON.parse(await fs.readFile(filePath)); const name = entry.name.split('.')[0]; // Use the base name this.#ajv.addSchema(name, schema); }