# Validation Rules 

### Validation Rules 
* **CustomerReference**: Required; 1–250 characters.
* **Title**: Required; 2–30 characters; letters, spaces, and single quotes only (`^[a-zA-Z ']+$`).
* **FirstName**: Required; 1–30 characters; letters, spaces, hyphens, and single quotes only (`^[a-zA-Z '-]+$`).
* **LastName**: Required; 2–30 characters; letters, spaces, hyphens, and single quotes only (`^[a-zA-Z '-]+$`).
* **MiddleNames**: Optional; 1–30 characters; letters, spaces, hyphens, and single quotes only (`^[a-zA-Z '-]+$`).
* **DateOfBirth**: Required; ISO-8601 date/datetime format; age must evaluate to between 18 and 120 years.
* **PhoneNumber**: Required; 10 or 11 numeric digits starting with `0` (`^0\d{9,10}$`); internal whitespace is stripped prior to matching.
* **EmailAddress**: Required; valid email format; 5–255 characters.
* **Address**: Required object (`additionalProperties: false`).
  * `PostCode`: Required; standard UK postcode format.
  * **Building Identification**: At least one of `AbodeNumber` (max 30), `BuildingName` (max 50), or `BuildingNumber` (max 12) is required (slashes and allowed symbols accepted).
  * `Address1`, `Address2`, `Address3`: Optional; 1–50 characters; alphanumeric and allowed symbols (no slashes).
  * `Town`: Optional; 1–25 characters; alphanumeric and allowed symbols (no slashes).

Version: all
