Skip to content

Commit 6cd2bba

Browse files
authored
Fix bug in JSON Schema for VCs and VPs.
1 parent 36161f3 commit 6cd2bba

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

‎schema/verifiable-credential/verifiable-credential-schema.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,13 @@
161161
"properties": {
162162
"@context": {
163163
"type": "array",
164-
"contains": {
165-
"const": "https://www.w3.org/ns/credentials/v2"
166-
},
167-
"minItems": 1
164+
"prefixItems": [
165+
{
166+
"const": "https://www.w3.org/ns/credentials/v2"
167+
}
168+
],
169+
"minItems": 1,
170+
"uniqueItems": true
168171
},
169172
"id": {
170173
"type": "string"
@@ -316,4 +319,4 @@
316319
"credentialSubject"
317320
],
318321
"additionalProperties": true
319-
}
322+
}

0 commit comments

Comments
 (0)