{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-property-brief-response-schema.json",
  "title": "PropertyBriefResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-casa-daily-property-api-openapi.yml#/components/schemas/PropertyBriefResponse",
  "properties": {
    "property_id": {
      "type": "string",
      "title": "Property Id"
    },
    "headline": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Headline"
    },
    "brief_text": {
      "type": "string",
      "title": "Brief Text"
    },
    "viability": {
      "additionalProperties": {
        "$ref": "#/$defs/PropertyBriefViability"
      },
      "type": "object",
      "title": "Viability"
    },
    "cited_da_numbers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Cited Da Numbers"
    },
    "comparables": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Comparables",
      "description": "Comparable approved DAs the page renders as photo cards. Includes application_number, address, distance_m, decision_year, description, lots_proposed, lga, photo_url (if any)."
    },
    "cached": {
      "type": "boolean",
      "title": "Cached",
      "default": false
    },
    "generated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Generated At"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    },
    "elapsed_ms": {
      "type": "integer",
      "title": "Elapsed Ms"
    }
  },
  "type": "object",
  "required": [
    "property_id",
    "brief_text",
    "elapsed_ms"
  ],
  "$defs": {
    "PropertyBriefViability": {
      "properties": {
        "rating": {
          "type": "string",
          "title": "Rating",
          "description": "high | medium | low | none"
        },
        "rationale": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rationale"
        }
      },
      "type": "object",
      "required": [
        "rating"
      ],
      "title": "PropertyBriefViability"
    }
  }
}