{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getlandlens-com/json-schema/getlandlens-com-property-schema.json",
  "title": "Property",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getlandlens-com-openapi.json#/components/schemas/Property",
  "allOf": [
    {
      "$ref": "#/$defs/PropertySummary"
    },
    {
      "type": "object",
      "properties": {
        "safety": {
          "type": "object"
        },
        "landlords": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "propertyCount": {
                "type": "integer"
              }
            }
          }
        },
        "tenantStats": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    }
  ],
  "$defs": {
    "PropertySummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "collegeId": {
          "type": "string"
        },
        "grade": {
          "type": [
            "string",
            "null"
          ]
        },
        "avgRating": {
          "type": "number"
        },
        "reviewCount": {
          "type": "integer"
        },
        "records": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Record"
          }
        }
      }
    },
    "Record": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "eviction",
            "violation",
            "permit",
            "license"
          ]
        },
        "date": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      }
    }
  }
}