From 693f89964595cfc2d1872874bbd8662ce2e9edd0 Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Fri, 23 Feb 2024 11:49:22 +0100 Subject: [PATCH] Use canonical schema --- .../test/resources/ob30/endorsement-valid.json | 8 ++++---- .../resources/ob30/simple-did-web-method.json | 16 ++++++++-------- .../test/resources/ob30/simple-eddsa-2022.json | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/inspector-vc/src/test/resources/ob30/endorsement-valid.json b/inspector-vc/src/test/resources/ob30/endorsement-valid.json index c0eaabf..e04a1c0 100644 --- a/inspector-vc/src/test/resources/ob30/endorsement-valid.json +++ b/inspector-vc/src/test/resources/ob30/endorsement-valid.json @@ -12,7 +12,7 @@ ], "issuer": { "id": "https://state.gov/issuers/565049", - "type": "Profile", + "type": ["Profile"], "name": "State Department of Education" }, "issuanceDate": "2010-01-01T00:00:00Z", @@ -20,7 +20,7 @@ "name": "Example endorsement", "credentialSubject": { "id": "https://1edtech.edu/issuers/565049", - "type": "EndorsementSubject", + "type": ["EndorsementSubject"], "endorsementComment": "1EdTech University is in good standing" }, "credentialSchema": [ @@ -29,11 +29,11 @@ "type": "1EdTechJsonSchemaValidator2019" } ], - "proof": { + "proof": [{ "type": "Ed25519Signature2020", "created": "2010-01-01T19:23:24Z", "verificationMethod": "https://state.gov/issuers/565049#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", "proofPurpose": "assertionMethod", "proofValue": "z347N8ntbL3usCGshtUZiyrBeGBhYVAqyi4HUhz4fBmU1zVwk5eRfPZJvKoendfyGaeSbJcAfQEVNpvcHLzVhDtQC" - } + }] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-did-web-method.json b/inspector-vc/src/test/resources/ob30/simple-did-web-method.json index c7c150e..36c2de0 100644 --- a/inspector-vc/src/test/resources/ob30/simple-did-web-method.json +++ b/inspector-vc/src/test/resources/ob30/simple-did-web-method.json @@ -12,9 +12,9 @@ ], "issuer": { "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c", - "type": "Profile", + "type": ["Profile"], "address": { - "type": "Address", + "type": ["Address"], "addressCountry": "Japan" }, "name": "1EdTech Testing" @@ -24,10 +24,10 @@ "name": "ob3-simple-did-web-method.json", "credentialSubject": { "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:6896f98f-6b42-4c75-98ec-8befd0dc0b29", - "type": "AchievementSubject", + "type": ["AchievementSubject"], "achievement": { "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/achievement/66457db3-fb3d-4ae3-8f32-bc8c79c9f0db", - "type": "Achievement", + "type": ["Achievement"], "achievementType": "Achievement", "criteria": { "narrative": "Passes tests" @@ -37,9 +37,9 @@ }, "source": { "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c", - "type": "Profile", + "type": ["Profile"], "address": { - "type": "Address", + "type": ["Address"], "addressCountry": "Japan" }, "name": "1EdTech Testing" @@ -53,11 +53,11 @@ "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/api/refresh/d002b4e9-6fd9-4af0-b1f7-faa9237b46ca", "type": "1EdTechCredentialRefresh" }, - "proof": { + "proof": [{ "type": "Ed25519Signature2020", "created": "2023-05-23T01:07:22Z", "proofPurpose": "assertionMethod", "verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c#key-0", "proofValue": "z5tVhex5rV9aTxTrGh26uyVdC6BWXG8dQCkzNjgkPWtwAjGzMyYXzrQYJ2XrKUsNpYE3fTXsgUSBwDCY11vbyGBw7" - } + }] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-eddsa-2022.json b/inspector-vc/src/test/resources/ob30/simple-eddsa-2022.json index bf699a5..d436555 100644 --- a/inspector-vc/src/test/resources/ob30/simple-eddsa-2022.json +++ b/inspector-vc/src/test/resources/ob30/simple-eddsa-2022.json @@ -8,7 +8,7 @@ "id": "http://www.1edtech.org/ob/1", "issuanceDate": "2022-11-27T00:00:00Z", "credentialSubject": { - "type": "AchievementSubject", + "type": ["AchievementSubject"], "id": "did:1edtech:1", "achievement": { "id": "did:1edtech:achievement:1", @@ -20,12 +20,12 @@ }, "name": "Some name", "issuer": { "id": "https://example.com/issuers/876543", "type": ["Profile"] }, - "proof": { + "proof": [{ "type": "DataIntegrityProof", "created": "2023-05-29T08:42:26Z", "proofPurpose": "assertionMethod", "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", "cryptosuite": "eddsa-2022", "proofValue": "z2H1miRAGKPRCPUSudNTPrsWyvpRZzgtgjPBmnMkbcwR8StwEv8dr3NigviBgvZwBu8yA7wAyF5qLjyo3zN1UqLR2" - } + }] } \ No newline at end of file