diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18a597a..a3e15da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,10 +35,9 @@ jobs: - name: Install dependencies run: cd viewer && npm ci - - #TODO: we are not validating the schemas of the data files yet. - # - name: Validate - # run: cd viewer && npm run validate + + - name: Validate + run: cd viewer && npm run validate build: runs-on: ubuntu-latest diff --git a/viewer/scripts/validate.mjs b/viewer/scripts/validate.mjs index 3b8e36d..9c94cd3 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 => { diff --git a/viewer/src/app/wallets-add/wallets-add.component.ts b/viewer/src/app/wallets-add/wallets-add.component.ts index 83bdbce..e15244a 100644 --- a/viewer/src/app/wallets-add/wallets-add.component.ts +++ b/viewer/src/app/wallets-add/wallets-add.component.ts @@ -74,7 +74,7 @@ export class WalletsAddComponent implements OnInit { getJSON() { return JSON.stringify( - { ...this.form.value, $schema: '../schema.json' }, + { ...this.form.value, $schema: '../viewer/src/assets/schema.json' }, null, 2 ); diff --git a/wallets/Altme.json b/wallets/Altme.json index a9e12f5..7b51863 100644 --- a/wallets/Altme.json +++ b/wallets/Altme.json @@ -2,6 +2,7 @@ "capability": ["holder"], "company": "Talao", "contact": "contact@altme.io", + "urlWebsite": "https://altme.io/", "credentialProfiles": ["EBSI"], "downloadSource": "https://github.com/TalaoDAO/AltMe", "license": "Apache 2.0", diff --git a/wallets/hightrust.id.json b/wallets/hightrust.id.json index b10ac58..6a76bd9 100644 --- a/wallets/hightrust.id.json +++ b/wallets/hightrust.id.json @@ -2,13 +2,12 @@ "name": "hightrust.id", "logo": "https://raw.githubusercontent.com/megical/hightrust.id-assets/main/AppIcons/hitid-app-icon-1024.png", "company": "Megical Oy", - "CompanyUrl": "https://www.hightrust.id", + "urlWebsite": "https://www.hightrust.id", "type": "edge", "openSource": false, "license": "Commercial software license", "capability": [], - "portability": null, - "linkToApp": "", + "portability": false, "credentialProfiles": [], "credentialFormats": [], "issuanceProtocols": [], @@ -17,5 +16,5 @@ "signingAlgorithms": [], "statusManagements": [], "trustManagements": [], - "$schema": "../schema.json" + "$schema": "../viewer/src/assets/schema.json" }