This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46f3b8a
commit 9c1ed40
Showing
22 changed files
with
302 additions
and
195 deletions.
There are no files selected for viewing
210 changes: 106 additions & 104 deletions
210
__tests__/__fixtures__/contexts/credential_vocab.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,113 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"VerifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"credentialSchema": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSchema", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"JsonSchemaValidator2018": "https://www.w3.org/2018/credentials#JsonSchemaValidator2018" | ||
"@context": [ | ||
"https://w3id.org/security/v3-unstable", | ||
{ | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"VerifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"credentialSchema": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSchema", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"JsonSchemaValidator2018": "https://www.w3.org/2018/credentials#JsonSchemaValidator2018" | ||
} | ||
}, | ||
"credentialStatus": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialStatus", | ||
"@type": "@id" | ||
}, | ||
"credentialSubject": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSubject", | ||
"@type": "@id" | ||
}, | ||
"evidence": { | ||
"@id": "https://www.w3.org/2018/credentials#evidence", | ||
"@type": "@id" | ||
}, | ||
"expirationDate": { | ||
"@id": "https://www.w3.org/2018/credentials#expirationDate", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"issued": { | ||
"@id": "https://www.w3.org/2018/credentials#issued", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"issuer": { | ||
"@id": "https://www.w3.org/2018/credentials#issuer", | ||
"@type": "@id" | ||
}, | ||
"issuanceDate": { | ||
"@id": "https://www.w3.org/2018/credentials#issuanceDate", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"refreshService": { | ||
"@id": "https://www.w3.org/2018/credentials#refreshService", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"ManualRefreshService2018": "https://www.w3.org/2018/credentials#ManualRefreshService2018" | ||
} | ||
}, | ||
"termsOfUse": { | ||
"@id": "https://www.w3.org/2018/credentials#termsOfUse", | ||
"@type": "@id" | ||
}, | ||
"validFrom": { | ||
"@id": "https://www.w3.org/2018/credentials#validFrom", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"validUntil": { | ||
"@id": "https://www.w3.org/2018/credentials#validUntil", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
} | ||
}, | ||
"credentialStatus": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialStatus", | ||
"@type": "@id" | ||
}, | ||
"credentialSubject": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSubject", | ||
"@type": "@id" | ||
}, | ||
"evidence": { | ||
"@id": "https://www.w3.org/2018/credentials#evidence", | ||
"@type": "@id" | ||
}, | ||
"expirationDate": { | ||
"@id": "https://www.w3.org/2018/credentials#expirationDate", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"issued": { | ||
"@id": "https://www.w3.org/2018/credentials#issued", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"issuer": { | ||
"@id": "https://www.w3.org/2018/credentials#issuer", | ||
"@type": "@id" | ||
}, | ||
"issuanceDate": { | ||
"@id": "https://www.w3.org/2018/credentials#issuanceDate", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"refreshService": { | ||
"@id": "https://www.w3.org/2018/credentials#refreshService", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"ManualRefreshService2018": "https://www.w3.org/2018/credentials#ManualRefreshService2018" | ||
} | ||
}, | ||
"termsOfUse": { | ||
"@id": "https://www.w3.org/2018/credentials#termsOfUse", | ||
"@type": "@id" | ||
}, | ||
"validFrom": { | ||
"@id": "https://www.w3.org/2018/credentials#validFrom", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"validUntil": { | ||
"@id": "https://www.w3.org/2018/credentials#validUntil", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
} | ||
} | ||
}, | ||
"VerifiablePresentation": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"verifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#verifiableCredential", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"VerifiablePresentation": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"verifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#verifiableCredential", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.