{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swathapi-com/json-schema/swathapi-com-property-schema.json",
  "title": "Property",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swathapi-com-openapi.json#/components/schemas/Property",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Property id (prop_...)"
    },
    "parcel_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "address": {
      "type": "string"
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "zip": {
      "type": [
        "string",
        "null"
      ]
    },
    "lat": {
      "type": [
        "number",
        "null"
      ]
    },
    "lng": {
      "type": [
        "number",
        "null"
      ]
    },
    "year_built": {
      "type": [
        "integer",
        "null"
      ]
    },
    "sqft": {
      "type": [
        "number",
        "null"
      ]
    },
    "roof_material": {
      "type": [
        "string",
        "null"
      ],
      "description": "Reserved — not populated yet, always null."
    },
    "last_roof_permit": {
      "type": [
        "string",
        "null"
      ]
    },
    "roof_age_est": {
      "type": [
        "number",
        "null"
      ]
    },
    "roof_age_source": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner_occupied": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "assessed_value": {
      "type": [
        "number",
        "null"
      ]
    },
    "vendor": {
      "type": "string",
      "description": "Data source label"
    },
    "fetched_at": {
      "type": "string",
      "format": "date-time"
    },
    "cache": {
      "type": "string",
      "enum": [
        "hit",
        "miss"
      ],
      "description": "Whether this record came from cache or a live vendor fetch"
    }
  }
}