Last active
September 19, 2024 21:01
-
-
Save SpiralOutDotEu/4594aea23295b08e1e99ee407d731e51 to your computer and use it in GitHub Desktop.
credentials
This file contains hidden or 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
{ | |
"@context": [ | |
{ | |
"@protected": true, | |
"@version": 1.1, | |
"id": "@id", | |
"type": "@type", | |
"DriversLicense": { | |
"@context": { | |
"@propagate": true, | |
"@protected": true, | |
"polygon-vocab": "urn:uuid:4bdcff8f-aa52-47a8-9486-bd18f0b9bc26#", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"ClassA": { | |
"@id": "polygon-vocab:ClassA", | |
"@type": "xsd:dateTime" | |
}, | |
"ClassB": { | |
"@id": "polygon-vocab:ClassB", | |
"@type": "xsd:dateTime" | |
}, | |
"ClassC": { | |
"@id": "polygon-vocab:ClassC", | |
"@type": "xsd:dateTime" | |
} | |
}, | |
"@id": "urn:uuid:1115e0f2-128f-41d0-8f98-fc43ece74d4e" | |
} | |
} | |
] | |
} |
This file contains hidden or 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
{ | |
"$metadata": { | |
"uris": { | |
"jsonLdContext": "https://gist.githubusercontent.com/SpiralOutDotEu/4594aea23295b08e1e99ee407d731e51/raw/30a994e4b3c3c1680b62f9a0c6d6ae388a656030/DriversLicense-JSON-LD-Context.json" | |
}, | |
"version": "1.0", | |
"type": "DriversLicense" | |
}, | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"description": "An EU compatible drivers license", | |
"title": "EU Drivers License", | |
"properties": { | |
"credentialSubject": { | |
"description": "Stores the data of the credential", | |
"title": "Credential subject", | |
"properties": { | |
"id": { | |
"description": "Stores the DID of the subject that owns the credential", | |
"title": "Credential subject ID", | |
"format": "uri", | |
"type": "string" | |
}, | |
"ClassA": { | |
"description": "Small bikes and scooters", | |
"title": "ClassA", | |
"format": "date", | |
"type": "string" | |
}, | |
"ClassB": { | |
"description": "All bikes and up to 7 seats passenger cars", | |
"title": "ClassB", | |
"format": "date", | |
"type": "string" | |
}, | |
"ClassC": { | |
"description": "Cargo trucks and buses", | |
"title": "ClassC", | |
"format": "date", | |
"type": "string" | |
} | |
}, | |
"required": [], | |
"type": "object" | |
}, | |
"@context": { | |
"type": [ | |
"string", | |
"array", | |
"object" | |
] | |
}, | |
"expirationDate": { | |
"format": "date-time", | |
"type": "string" | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"issuanceDate": { | |
"format": "date-time", | |
"type": "string" | |
}, | |
"issuer": { | |
"type": [ | |
"string", | |
"object" | |
], | |
"format": "uri", | |
"properties": { | |
"id": { | |
"format": "uri", | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
}, | |
"type": { | |
"type": [ | |
"string", | |
"array" | |
], | |
"items": { | |
"type": "string" | |
} | |
}, | |
"credentialSchema": { | |
"properties": { | |
"id": { | |
"format": "uri", | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
], | |
"type": "object" | |
}, | |
"credentialStatus": { | |
"description": "Allows the discovery of information about the current status of the credential, such as whether it is suspended or revoked.", | |
"title": "Credential Status", | |
"properties": { | |
"id": { | |
"description": "Id URL of the credentialStatus.", | |
"title": "Id", | |
"format": "uri", | |
"type": "string" | |
}, | |
"type": { | |
"description": "Expresses the credential status type (method). The value should provide enough information to determine the current status of the credential.", | |
"title": "Type", | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
], | |
"type": "object" | |
} | |
}, | |
"required": [ | |
"credentialSubject", | |
"@context", | |
"id", | |
"issuanceDate", | |
"issuer", | |
"type", | |
"credentialSchema" | |
], | |
"type": "object" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment