{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://schemas.digitallinguistics.io/Address-2.2.0.json",
    "title": "Address",
    "type": "object",
    "description": "A postal Address",
    "additionalProperties": true,
    "properties": {
        "type": {
            "title": "Type",
            "type": "string",
            "const": "Address",
            "readOnly": true,
            "description": "The type of object. Must be set to `Address`."
        },
        "streetAddress": {
            "title": "Street Address",
            "type": "string",
            "description": "The street address, not including apartment or unit number"
        },
        "apartmentNumber": {
            "title": "Apartment / Unit Number",
            "type": "string",
            "description": "The apartment or unit number, along with any abbreviations, e.g. `Apt 20`"
        },
        "postalBoxNumber": {
            "title": "Postal Box Number",
            "type": "string",
            "description": "The postal box number"
        },
        "locality": {
            "title": "Locality / City",
            "type": "string",
            "description": "The locality or city for this Address"
        },
        "region": {
            "title": "Region / State",
            "type": "string",
            "description": "The region or state for this Address"
        },
        "country": {
            "title": "Country",
            "type": "string",
            "description": "The country this address is located in"
        },
        "postalCode": {
            "title": "Postal Code",
            "type": "string",
            "description": "The postal code for this address (as a string rather than a number)"
        }
    },
    "examples": [
        {
            "locality": "Kisii Town",
            "country": "Kenya"
        },
        {
            "locality": "Charenton",
            "region": "Louisiana",
            "country": "United States"
        },
        {
            "apartmentNumber": "B",
            "country": "United States",
            "locality": "New York",
            "postalBoxNumber": "1234",
            "postalCode": "12345-1234",
            "region": "New York",
            "streetAddress": "555 Market St.",
            "type": "Address"
        }
    ]
}