{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendletter-eu/json-schema/sendletter-eu-address-schema.json",
  "title": "Address",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendletter-eu-openapi.json#/components/schemas/Address",
  "type": "object",
  "required": [
    "name",
    "street",
    "number",
    "postalCode",
    "city",
    "country"
  ],
  "properties": {
    "company": {
      "type": "string",
      "description": "Optional. Printed above the name."
    },
    "name": {
      "type": "string"
    },
    "street": {
      "type": "string"
    },
    "number": {
      "type": "string",
      "description": "House number, kept separate for countries that put it first."
    },
    "addition": {
      "type": "string",
      "description": "Optional. Suffix, floor, or care-of line."
    },
    "postalCode": {
      "type": "string",
      "description": "Normalised per country. 1234AB becomes 1234 AB."
    },
    "city": {
      "type": "string"
    },
    "province": {
      "type": "string",
      "description": "Required in Italy and Spain, ignored elsewhere."
    },
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "enum": [
        "NL",
        "DE",
        "BE",
        "AT",
        "FR",
        "ES",
        "IT",
        "LU",
        "GB",
        "IE",
        "PT",
        "CH",
        "PL",
        "DK",
        "SE",
        "NO",
        "HU",
        "SI",
        "BG",
        "HR",
        "ZA",
        "FI",
        "EE",
        "LT",
        "TR",
        "MX",
        "KR",
        "RO",
        "SG",
        "CN",
        "CZ",
        "SK",
        "GR",
        "IS",
        "LV",
        "US",
        "CA",
        "JP",
        "BR",
        "IL",
        "IN"
      ]
    }
  }
}