From 7799ffa73d9b077ce2a46eaaa890a20778eb4ae1 Mon Sep 17 00:00:00 2001 From: Mirko Mollik Date: Sun, 21 Apr 2024 17:40:47 +0200 Subject: [PATCH] Update validate.mjs set correct path to schema Signed-off-by: Mirko Mollik --- viewer/scripts/validate.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/scripts/validate.mjs b/viewer/scripts/validate.mjs index 3b8e36d..1fb3a87 100644 --- a/viewer/scripts/validate.mjs +++ b/viewer/scripts/validate.mjs @@ -7,7 +7,7 @@ const ajv = new Ajv({allowUnionTypes: true}); addFormats(ajv); const profileSIGSchema = await axios.get('https://openwallet-foundation.github.io/credential-format-comparison-sig/assets/schemas/fields.json').then(res => res.data); ajv.addSchema(profileSIGSchema, "https://openwallet-foundation.github.io/credential-format-comparison-sig/assets/schemas/fields.json"); -const validate = ajv.compile(JSON.parse(readFileSync('../schema.json'))); +const validate = ajv.compile(JSON.parse(readFileSync('../src/assets/schema.json'))); const files = readdirSync('../wallets'); let success = true; files.map(file => {