{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-precedent-seed-request-schema.json",
  "title": "PrecedentSeedRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-casa-daily-precedent-api-openapi.yml#/components/schemas/PrecedentSeedRequest",
  "properties": {
    "dev_type": {
      "type": "string",
      "enum": [
        "subdivision",
        "duplex",
        "townhouse",
        "multi_unit",
        "secondary_dwelling",
        "mcu",
        "kdr",
        "single_dwelling"
      ],
      "title": "Dev Type",
      "description": "Development type to seed from."
    },
    "lookback_months": {
      "type": "integer",
      "maximum": 120.0,
      "minimum": 6.0,
      "title": "Lookback Months",
      "description": "How far back to count approvals.",
      "default": 36
    },
    "lgas": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lgas",
      "description": "Restrict to these LGAs. None = all SEQ. Pass a subset (e.g. ['Sunshine Coast']) to seed within the user's preferred patch."
    },
    "min_approvals": {
      "type": "integer",
      "maximum": 50.0,
      "minimum": 1.0,
      "title": "Min Approvals",
      "description": "Drop suburbs/zones with fewer approved DAs.",
      "default": 3
    },
    "min_approval_rate_pct": {
      "type": "number",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Min Approval Rate Pct",
      "description": "Drop (suburb, zone) combos where less than this %% of decided DAs were approved.",
      "default": 50.0
    },
    "limit": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Limit",
      "description": "Max (suburb, zone) tuples to return.",
      "default": 20
    }
  },
  "type": "object",
  "required": [
    "dev_type"
  ]
}