recipient.schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://titip.id/schemas/recipient.schema.json",
"title": "Recipient",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"user_id",
"display_name"
],
"properties": {
"id": {
"type": "string",
"pattern": "^rcp_[a-zA-Z0-9]+$"
},
"user_id": {
"type": "string",
"pattern": "^usr_[a-zA-Z0-9]+$"
},
"display_name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"email": {
"type": "string",
"format": "email"
},
"phone_e164": {
"type": "string",
"pattern": "^\\+[1-9][0-9]{7,14}$"
},
"birth_year": {
"type": "integer",
"minimum": 1900,
"maximum": 2100
}
}
}