Last active
December 11, 2024 18:12
-
-
Save ilya-korotya/1a4f0f55fad8b80d078f8cfd72d0f2d3 to your computer and use it in GitHub Desktop.
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/64beaaa0b561a11cabc6ce99d956d7a0/raw/f27afaf0286118f90461d1315788d68ef8aae4ba/PrivatelyAgeV2.jsonld" | |
}, | |
"version": "1.0", | |
"type": "PrivatelyAgeVerification" | |
}, | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"description": "Schema for age verification", | |
"title": "PrivatelyAgeVerification", | |
"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" | |
}, | |
"minAge": { | |
"description": "min age", | |
"title": "minAge", | |
"type": "integer" | |
}, | |
"maxAge": { | |
"description": "max age", | |
"title": "maxAge", | |
"type": "integer" | |
}, | |
"score": { | |
"description": "score", | |
"title": "score", | |
"type": "integer" | |
}, | |
"gate": { | |
"description": "gate", | |
"title": "gate", | |
"type": "integer" | |
} | |
}, | |
"required": [ | |
"minAge", | |
"maxAge", | |
"score", | |
"gate" | |
], | |
"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