{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Proof of Address", "description": "Proof of Address Credential", "type": "object", "$metadata": { "uris": { "jsonLdContext": "https://raw.githubusercontent.com/redbellynetwork/receptor-schema/refs/heads/main/schemas/json-ld/ProofOfAddressCredential.jsonld", "jsonSchema": "https://raw.githubusercontent.com/redbellynetwork/receptor-schema/refs/heads/main/schemas/json/ProofOfAddressCredential.json" }, "type": "ProofOfAddressCredential" }, "required": [ "@context", "id", "type", "issuer", "issuanceDate", "credentialSubject", "credentialSchema", "credentialStatus" ], "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" } } }, "credentialStatus": { "type": "object", "required": ["id", "revocationNonce", "type"], "properties": { "id": { "type": "string", "format": "uri" }, "revocationNonce": { "type": "integer" }, "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", "country", "city", "street", "postCode"], "properties": { "id": { "title": "Credential Subject ID", "type": "string", "format": "uri", "description": "Identifier for the subject of the credential." }, "country": { "type": "string", "pattern": "^\\S.*\\S$|^\\S$", "description": "Country of residence." }, "city": { "type": "string", "pattern": "^\\S.*\\S$|^\\S$", "description": "City of residence" }, "street": { "type": "string", "pattern": "^\\S.*\\S$|^\\S$", "description": "Street name" }, "postCode": { "type": "string", "pattern": "^[0-9]{5,}$", "description": "Post Code" } } } } }