Created
November 15, 2024 11:27
-
-
Save ilya-korotya/4c13434fb847ae3904d0096f1889aebc 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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"$metadata": { | |
"uris": { | |
"jsonLdContext": "https://raw.githubusercontent.com/anima-protocol/claims-polygonid/main/schemas/json-ld/poi-v2.json-ld", | |
"jsonSchema": "https://raw.githubusercontent.com/anima-protocol/claims-polygonid/main/schemas/json/PoIAnima-v2.json" | |
} | |
}, | |
"required": [ | |
"@context", | |
"id", | |
"type", | |
"issuanceDate", | |
"credentialSubject", | |
"credentialSchema", | |
"credentialStatus", | |
"issuer" | |
], | |
"properties": { | |
"@context": { | |
"type": [ | |
"string", | |
"array", | |
"object" | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": [ | |
"string", | |
"array" | |
], | |
"items": { | |
"type": "string" | |
} | |
}, | |
"issuer": { | |
"type": [ | |
"string", | |
"object" | |
], | |
"format": "uri", | |
"required": [ | |
"id" | |
], | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uri" | |
} | |
} | |
}, | |
"issuanceDate": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"expirationDate": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"credentialSchema": { | |
"type": "object", | |
"required": [ | |
"id", | |
"type" | |
], | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uri" | |
}, | |
"type": { | |
"type": "string" | |
} | |
} | |
}, | |
"subjectPosition": { | |
"type": "string", | |
"enum": [ | |
"none", | |
"index", | |
"value" | |
] | |
}, | |
"merklizationRootPosition": { | |
"type": "string", | |
"enum": [ | |
"none", | |
"index", | |
"value" | |
] | |
}, | |
"revNonce": { | |
"type": "integer" | |
}, | |
"version": { | |
"type": "integer" | |
}, | |
"updatable": { | |
"type": "boolean" | |
}, | |
"credentialSubject": { | |
"type": "object", | |
"required": [ | |
"id", | |
"firstname", | |
"lastname", | |
"date_of_birth_str", | |
"date_of_birth", | |
"nationality", | |
"document_country", | |
"document_type", | |
"document_number", | |
"kyc_validated", | |
"kyc_aml_validated", | |
"document_country_code" | |
], | |
"properties": { | |
"id": { | |
"title": "Credential Subject ID", | |
"type": "string", | |
"format": "uri" | |
}, | |
"firstname": { | |
"title": "First Name", | |
"type": "string" | |
}, | |
"lastname": { | |
"title": "Last Name", | |
"type": "string" | |
}, | |
"date_of_birth_str": { | |
"title": "Date of Birth (Date String)", | |
"type": "string" | |
}, | |
"date_of_birth": { | |
"title": "Date of Birth (Timestamp)", | |
"type": "integer" | |
}, | |
"nationality": { | |
"title": "Nationality", | |
"type": "string" | |
}, | |
"document_country": { | |
"title": "Document Country", | |
"type": "string" | |
}, | |
"document_type": { | |
"title": "Document Type", | |
"type": "string" | |
}, | |
"document_number": { | |
"title": "Document Number", | |
"type": "string" | |
}, | |
"document_expiration_str": { | |
"title": "Document Expiration Date (Date String)", | |
"type": "string" | |
}, | |
"document_expiration": { | |
"title": "Document Expiration Date (Timestamp)", | |
"type": "integer" | |
}, | |
"kyc_validated": { | |
"title": "KYC Validated", | |
"type": "boolean" | |
}, | |
"kyc_aml_validated": { | |
"title": "KYC AML Validated", | |
"type": "boolean" | |
}, | |
"document_country_code": { | |
"title": "Document Country Code", | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment