Raw schema
{
"type": "object",
"properties": {
"entries": {
"type": "array",
"minItems": 1,
"maxItems": 60,
"description": "One entry per period of work in a country.",
"items": {
"type": "object",
"properties": {
"country": {
"type": "string",
"minLength": 2,
"maxLength": 80,
"description": "A country: English or native name, alias or ISO code, for example NL or Netherlands."
},
"from": {
"type": [
"integer",
"string",
"null"
],
"minimum": 1900,
"maximum": 2100,
"maxLength": 40,
"description": "First year of work: four digits, rough words such as \"around 2005\" or \"the 1990s\", or \"unknown\". Optional."
},
"to": {
"type": [
"integer",
"string",
"null"
],
"minimum": 1900,
"maximum": 2100,
"maxLength": 40,
"description": "Last year, in the same forms, or \"now\". Omit when from alone describes the period."
},
"employer": {
"type": [
"string",
"null"
],
"maxLength": 120,
"description": "Employer name as the person knows it. Optional."
},
"status": {
"type": [
"string",
"null"
],
"enum": [
"citizen",
"permanent_resident",
"pass_holder",
"unknown",
null
],
"description": "Optional. citizen, permanent_resident, pass_holder or unknown. Decides some verdicts, such as Singapore CPF."
},
"pensionType": {
"type": "string",
"enum": [
"state",
"workplace",
"provident",
"personal"
],
"description": "Optional. state, workplace, provident or personal."
}
},
"required": [
"country"
],
"additionalProperties": false
}
},
"subject": {
"type": "object",
"description": "Optional facts about the person, used only to decide which dated obligations apply.",
"properties": {
"birthYear": {
"type": "integer",
"minimum": 1900,
"maximum": 2100,
"description": "Optional. Year of birth, four digits. Used for age-dependent rules."
},
"deceased": {
"type": "boolean",
"description": "True when the person has died and a relative is asking."
},
"pensionInPaymentCountries": {
"type": "array",
"items": {
"type": "string",
"description": "Countries already paying the person a pension."
},
"description": "Countries already paying the person a pension."
},
"childrenMentioned": {
"type": "boolean",
"description": "True when children are part of the question."
}
},
"additionalProperties": false
},
"question": {
"type": "string",
"maxLength": 500,
"description": "Optional. The person's question in plain words, used only to tell which kind of pension it is about."
},
"countryOfResidence": {
"type": "string",
"maxLength": 80,
"description": "Optional. Where the person lives now. For a country they live in, what is hard from abroad is left out."
},
"birthYear": {
"type": "integer",
"minimum": 1900,
"maximum": 2100,
"description": "Optional. Year of birth, four digits. Used for age-dependent rules."
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 35,
"description": "Optional. Language of our own sentences, default en: en, ar, da, de, es, fa, fr, hi, id, it, ja, ko, nb, nl, pl, pt, pt-BR, ro, ru, sv, th, tl, tr, zh, vi, uk, bg. Facts stay as stored."
},
"previousNames": {
"type": "array",
"maxItems": 5,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"description": "Optional. Earlier names worked under (maiden, married). Never stored."
}
},
"required": [
"entries"
],
"additionalProperties": false
}