Skip to content

Commit

Permalink
Update validate.mjs
Browse files Browse the repository at this point in the history
set correct path to schema

Signed-off-by: Mirko Mollik <[email protected]>
  • Loading branch information
cre8 authored Apr 21, 2024
1 parent a28e715 commit 7799ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewer/scripts/validate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 7799ffa

Please sign in to comment.