From aa982e57811b67daeea3b1a7e56d5440bdecf592 Mon Sep 17 00:00:00 2001 From: Varshitha Besthavemula Date: Mon, 23 Feb 2026 19:27:02 +0530 Subject: [PATCH] fix: Normalize urls in precompile-schemas --- precompile-schemas/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precompile-schemas/index.js b/precompile-schemas/index.js index 2345749..8872fb2 100644 --- a/precompile-schemas/index.js +++ b/precompile-schemas/index.js @@ -18,7 +18,7 @@ const ajv = new Ajv({ strictNumbers: false, logger: false, loadSchema: (uri) => { - schemaPath = fileURLToPath(uri); + schemaPath = fileURLToPath(new URL(decodeURI(uri))); const schema = require(schemaPath); const processedSchema = processJson(schema); processedSchema.$id = uri;