{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/propbar-co-uk/json-schema/propbar-co-uk-get-property-uprn-response-schema.json",
  "title": "GetPropertyUprnResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/propbar-co-uk-openapi-generated.yml#/components/schemas/GetPropertyUprnResponse",
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "description": "Property address"
    },
    "postcode": {
      "type": "string",
      "description": "Postcode"
    },
    "propertyType": {
      "type": "string",
      "description": "Type of property (e.g., semi-detached)"
    },
    "bedrooms": {
      "type": "integer",
      "description": "Number of bedrooms"
    },
    "totalFloorArea": {
      "type": "integer",
      "description": "Floor area in square metres"
    },
    "epc": {
      "type": "object",
      "description": "Energy Performance Certificate data"
    },
    "epc.currentRating": {
      "type": "string",
      "description": "Current EPC rating"
    },
    "tenure": {
      "type": "object",
      "description": "Tenure information"
    },
    "tenure.type": {
      "type": "string",
      "description": "Tenure type (e.g., leasehold)"
    },
    "saleHistory": {
      "type": "array",
      "description": "List of past sale records"
    },
    "saleHistory[].date": {
      "type": "string",
      "description": "Date of sale (YYYY-MM)"
    },
    "saleHistory[].amount": {
      "type": "integer",
      "description": "Sale price amount"
    }
  }
}