{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/actuallycare-com/json-schema/actuallycare-com-listing-schema.json",
  "title": "Listing",
  "description": "Property listing record",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/actuallycare-com-v1-openapi.json#/components/schemas/Listing",
  "type": "object",
  "required": [
    "address",
    "list_price"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "user_id": {
      "type": "string",
      "format": "uuid"
    },
    "mls_number": {
      "type": "string",
      "description": "MLS listing number"
    },
    "address": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "zip_code": {
      "type": "string"
    },
    "list_price": {
      "type": "number",
      "format": "double",
      "minimum": 0
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "pending",
        "sold",
        "withdrawn",
        "expired"
      ]
    },
    "property_type": {
      "type": "string",
      "enum": [
        "single_family",
        "condo",
        "townhouse",
        "multi_family",
        "land",
        "commercial"
      ]
    },
    "bedrooms": {
      "type": "integer",
      "minimum": 0
    },
    "bathrooms": {
      "type": "number",
      "format": "float",
      "minimum": 0
    },
    "square_feet": {
      "type": "integer",
      "minimum": 0
    },
    "lot_size": {
      "type": "number",
      "format": "float",
      "minimum": 0
    },
    "year_built": {
      "type": "integer"
    },
    "description": {
      "type": "string",
      "description": "Property description"
    },
    "listing_date": {
      "type": "string",
      "format": "date"
    },
    "expiration_date": {
      "type": "string",
      "format": "date"
    },
    "photos": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "virtual_tour_url": {
      "type": "string",
      "format": "uri"
    },
    "showing_instructions": {
      "type": "string"
    },
    "days_on_market": {
      "type": "integer",
      "minimum": 0
    },
    "price_per_sqft": {
      "type": "number",
      "format": "float"
    },
    "version": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}