Raw schema
{
"type": "object",
"properties": {
"sender": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 120,
"description": "Full name of the person or company, as it should appear on the letter."
},
"street": {
"type": "string",
"maxLength": 160,
"description": "Street, number, floor and door, e.g. \"Calle Mayor 12, 3º B\"."
},
"postal_code": {
"type": "string",
"maxLength": 10,
"description": "Spanish 5-digit postcode (código postal), e.g. \"28013\"."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "Town or city (localidad), e.g. \"Madrid\"."
},
"province": {
"description": "Province, optional. Checked against the postcode when given.",
"type": "string",
"maxLength": 60
},
"country": {
"description": "Omit it, or \"España\". Only addresses in Spain are accepted; any other country is rejected.",
"type": "string",
"maxLength": 60
},
"email": {
"description": "Sender's email for the receipt and tracking, optional. Not printed on the letter.",
"type": "string",
"maxLength": 254
}
},
"required": [
"name",
"street",
"postal_code",
"city"
],
"description": "Who sends the letter. Must be a postal address in Spain (the acuse de recibo goes back there). Printed top left and on the signature line."
},
"recipient": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 120,
"description": "Full name of the person or company, as it should appear on the letter."
},
"street": {
"type": "string",
"maxLength": 160,
"description": "Street, number, floor and door, e.g. \"Calle Mayor 12, 3º B\"."
},
"postal_code": {
"type": "string",
"maxLength": 10,
"description": "Spanish 5-digit postcode (código postal), e.g. \"28013\"."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "Town or city (localidad), e.g. \"Madrid\"."
},
"province": {
"description": "Province, optional. Checked against the postcode when given.",
"type": "string",
"maxLength": 60
},
"country": {
"description": "Omit it, or \"España\". Only addresses in Spain are accepted; any other country is rejected.",
"type": "string",
"maxLength": 60
}
},
"required": [
"name",
"street",
"postal_code",
"city"
],
"description": "Who receives it. Must be a postal address in Spain."
},
"subject": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Short subject line, in Spanish, printed as \"Asunto: …\", e.g. \"Reclamación de la fianza del contrato de alquiler\"."
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 40000,
"description": "The full letter body exactly as the user approved it, in Spanish (or bilingual). Separate paragraphs with a blank line. No address blocks, date or signature: those are added automatically."
},
"option": {
"default": "correos",
"description": "Delivery option: \"correos\" (Burofax de Correos) or \"notificados\" (certified notification by a trusted third party, not Correos). Use the user's choice; if they have none, use \"correos\". They can switch on the review page.",
"type": "string",
"enum": [
"correos",
"notificados"
]
},
"city": {
"description": "City for the dateline \"En <city>, a <date>\". Defaults to the sender's city.",
"type": "string",
"maxLength": 80
}
},
"required": [
"sender",
"recipient",
"subject",
"body"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}