{
  "type": "object",
  "properties": {
    "address": {
      "type": "object",
      "properties": {
    "recipient": { "type": ["string", "null"] },
    "given_name": { "type": ["string", "null"] },
    "family_name": { "type": ["string", "null"] },
    "organization": { "type": ["string", "null"] },
    "address_line_1": { "type": ["string", "null"] },
    "address_line_2": { "type": ["string", "null"] },
    "address_line_3": { "type": ["string", "null"] },
    "dependent_locality": { "type": ["string", "null"] },
    "locality": { "type": ["string", "null"] },
    "administrative_area": { "type": ["string", "null"] },
    "postal_code": { "type": ["string", "null"] },
    "sorting_code": { "type": ["string", "null"] },
    "country": { "type": "string", "minLength": 2, "maxLength": 2 },
    "telephone": { "type": ["string", "null"] },
    "extra": { "type": ["object", "null"] },
        "customerAddressUuid": {
          "type": "string",
          "description": "Reuse a saved address of the logged-in customer: the row is copied verbatim, extra included, instead of the fields above."
        }
      },
      "additionalProperties": true
    },
    "type": {
      "type": "string",
      "enum": ["shipping", "billing"]
    }
  },
  "required": ["address", "type"],
  "additionalProperties": true,
  "errorMessage": {
    "properties": {
      "cart_id": "Cart id is required",
      "address": "Address is required",
      "type": "Address type is required"
    }
  }
}
