{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hypervolt/json-schema/hypervolt-address-schema.json",
  "title": "Address",
  "description": "A complete GB address",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hypervolt-openapi.json#/components/schemas/Address",
  "type": "object",
  "required": [
    "postcode",
    "latitude",
    "longitude",
    "thoroughfare",
    "buildingName",
    "subBuildingName",
    "subBuildingNumber",
    "buildingNumber",
    "line1",
    "line2",
    "line3",
    "line4",
    "locality",
    "townOrCity",
    "county",
    "district",
    "country",
    "residential"
  ],
  "properties": {
    "postcode": {
      "type": "string"
    },
    "latitude": {
      "type": "number",
      "format": "double"
    },
    "longitude": {
      "type": "number",
      "format": "double"
    },
    "formattedAddress": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "thoroughfare": {
      "type": "string"
    },
    "buildingName": {
      "type": "string"
    },
    "subBuildingName": {
      "type": "string"
    },
    "subBuildingNumber": {
      "type": "string"
    },
    "buildingNumber": {
      "type": "string"
    },
    "line1": {
      "type": "string"
    },
    "line2": {
      "type": "string"
    },
    "line3": {
      "type": "string"
    },
    "line4": {
      "type": "string"
    },
    "locality": {
      "type": "string"
    },
    "townOrCity": {
      "type": "string"
    },
    "county": {
      "type": "string"
    },
    "district": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "residential": {
      "type": "boolean"
    }
  }
}