Last active
February 4, 2025 15:46
-
-
Save ilya-korotya/601c46ca5a7487ae6e1946b4aab22b1d to your computer and use it in GitHub Desktop.
AnonAadhaar.json
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/ilya-korotya/078de56c274d44ea5a9579e137bd4301/raw/bfc67afc2246cf40a3fc508f0de9f689f318373d/AnonAadhaar.jsonld" | |
}, | |
"version": "1.0", | |
"type": "AnonAadhaar" | |
}, | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"description": "Anon Aadhaar schema", | |
"title": "AnonAadhaar", | |
"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" | |
}, | |
"birthday": { | |
"description": "birthday", | |
"title": "birthday", | |
"type": "integer" | |
}, | |
"gender": { | |
"description": "gender", | |
"title": "gender", | |
"type": "integer" | |
}, | |
"pinCode": { | |
"description": "pinCode", | |
"title": "pinCode", | |
"type": "integer" | |
}, | |
"state": { | |
"description": "state", | |
"title": "state", | |
"type": "integer" | |
} | |
}, | |
"required": [ | |
"birthday", | |
"gender", | |
"pinCode", | |
"state" | |
], | |
"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