Skip to content

Commit

Permalink
adds omitted ViRA updates (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
m00sey authored Nov 14, 2022
1 parent bdc03f0 commit 3ce1dea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema/acdc/verifiable-ixbrl-report-attestation.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -102,7 +102,7 @@
"e": {
"oneOf": [
{
"$id": "EBXPKaqdhsxvHJDGSQxIoieaB3mD9T9NRUuvvTgwtgyJ",
"$id": "EGdpNTt_v5NAIhzWZjisHE5oaYnoJVOC7iVFySw9eFKX",
"description": "Chained vLEI OOR Credential",
"properties": {
"d": {
Expand Down Expand Up @@ -137,7 +137,7 @@
"type": "object"
},
{
"$id": "ELYuRJEeLD5rmryZ9zKCPqS0xcfAbC73ChOzn9rH9Q70",
"$id": "EO2AOkCvsjm5RyQYAPpUZP96pbXlPGym57VemjxlOlMe",
"description": "Chained vLEI ECR Credential",
"properties": {
"d": {
Expand Down
6 changes: 6 additions & 0 deletions src/vlei/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 3ce1dea

Please sign in to comment.