UNPKG

@tradle/models

Version:
115 lines (114 loc) 2.06 kB
{ "id": "tradle.Passport", "type": "tradle.Model", "title": "Passport", "interfaces": [ "tradle.Verifiable" ], "verifiableAspects": { "authenticity": { "methods": [ "tradle.VisualVerificationMethod", "tradle.APIBasedVerificationMethod" ] }, "ownership": { "methods": [ "tradle.VisualVerificationMethod" ] }, "validity": { "methods": [ "tradle.VisualVerificationMethod" ] } }, "subClassOf": "tradle.Form", "properties": { "issuingCountry": { "type": "object", "ref": "tradle.Country" }, "passportNumber": { "type": "number", "maxLength": 9, "minLength": 9, "displayName": true }, "surname": { "type": "string" }, "givenName": { "type": "string" }, "nationality": { "type": "object", "ref": "tradle.Country" }, "dateOfBirth": { "type": "date" }, "sex": { "type": "object", "ref": "tradle.Sex" }, "placeOfBirth": { "type": "string" }, "dateOfIssue": { "type": "date" }, "authority": { "type": "string", "displayName": true }, "dateOfExpiry": { "type": "date", "displayName": true }, "country": { "type": "object", "ref": "tradle.Country" }, "time": { "type": "date", "readOnly": true }, "photos": { "type": "array", "inlined": true, "items": { "ref": "tradle.Photo" } } }, "required": [ "country", "photos", "issuingCountry", "passportNumber", "surname", "givenName", "nationality", "dateOfBirth", "sex", "placeOfBirth", "dateOfIssue", "authority", "dateOfExpiry" ], "viewCols": [ "country", "issuingCountry", "passportNumber", "surname", "givenName", "nationality", "dateOfBirth", "sex", "placeOfBirth", "dateOfIssue", "authority", "dateOfExpiry" ] }