From 3ce1dea84820d820a3de5c428c4e9e2ed296a225 Mon Sep 17 00:00:00 2001 From: Kevin Griffin Date: Mon, 14 Nov 2022 15:39:50 -0800 Subject: [PATCH] adds omitted ViRA updates (#72) --- schema/acdc/verifiable-ixbrl-report-attestation.json | 6 +++--- src/vlei/generate.py | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/schema/acdc/verifiable-ixbrl-report-attestation.json b/schema/acdc/verifiable-ixbrl-report-attestation.json index a04dc5f..2405a30 100644 --- a/schema/acdc/verifiable-ixbrl-report-attestation.json +++ b/schema/acdc/verifiable-ixbrl-report-attestation.json @@ -1,5 +1,5 @@ { - "$id": "EJEMDhCDi8gLqtaXrb36DRLHMfC1c08PqirQvdPPSG5u", + "$id": "EMhvwOlyEJ9kN4PrwCpr9Jsv7TxPhiYveZ0oP3lJzdEi", "$schema": "http://json-schema.org/draft-07/schema#", "title": "iXBRL Data Value Attestation", "description": "A data attestation against an iXBRL report, linked to either a vLEI OOR or vLEI ECR credential", @@ -102,7 +102,7 @@ "e": { "oneOf": [ { - "$id": "EBXPKaqdhsxvHJDGSQxIoieaB3mD9T9NRUuvvTgwtgyJ", + "$id": "EGdpNTt_v5NAIhzWZjisHE5oaYnoJVOC7iVFySw9eFKX", "description": "Chained vLEI OOR Credential", "properties": { "d": { @@ -137,7 +137,7 @@ "type": "object" }, { - "$id": "ELYuRJEeLD5rmryZ9zKCPqS0xcfAbC73ChOzn9rH9Q70", + "$id": "EO2AOkCvsjm5RyQYAPpUZP96pbXlPGym57VemjxlOlMe", "description": "Chained vLEI ECR Credential", "properties": { "d": { diff --git a/src/vlei/generate.py b/src/vlei/generate.py index 4109d7d..c3ec2da 100644 --- a/src/vlei/generate.py +++ b/src/vlei/generate.py @@ -55,6 +55,12 @@ def main(): ecr = generating.populateSAIDS(ecr) __save(p, ecr) + p = f'{path}/../../schema/acdc/verifiable-ixbrl-report-attestation.json' + vira = __load(p) + vira['properties']['e']['oneOf'][0]['properties']['oor']["properties"]['s']['const'] = oor[coring.Ids.dollar] + vira['properties']['e']['oneOf'][1]['properties']['ecr']["properties"]['s']['const'] = ecr[coring.Ids.dollar] + vira = generating.populateSAIDS(vira) + __save(p, vira) def __load(p): ff = open(p, 'r')