{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/homechecker-com-au/json-schema/homechecker-com-au-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/homechecker-com-au-api-openapi.json#/components/schemas/SearchResponse",
  "type": "object",
  "required": [
    "query",
    "count",
    "matchStrength",
    "results",
    "boundary"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "matchStrength": {
      "type": "string",
      "enum": [
        "none",
        "weak",
        "strong"
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchResult"
      }
    },
    "boundary": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Cluster": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "id",
            "label",
            "chip",
            "blurb"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "chip": {
              "type": "string"
            },
            "blurb": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "MatchedSection": {
      "type": "object",
      "required": [
        "id",
        "heading",
        "snippet",
        "score"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "heading": {
          "type": "string"
        },
        "snippet": {
          "type": "string"
        },
        "score": {
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "SearchResult": {
      "type": "object",
      "required": [
        "slug",
        "title",
        "question",
        "summary",
        "answer",
        "canonicalUrl",
        "referralUrl",
        "resourceUri",
        "jurisdiction",
        "cluster",
        "topics",
        "propertyTypes",
        "eras",
        "buyingStages",
        "updatedAt",
        "reviewedAt",
        "limitations",
        "score",
        "matchedTerms",
        "matchedSections"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "question": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "answer": {
          "type": "string"
        },
        "canonicalUrl": {
          "type": "string",
          "format": "uri"
        },
        "referralUrl": {
          "type": "string",
          "format": "uri"
        },
        "resourceUri": {
          "type": "string"
        },
        "jurisdiction": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "cluster": {
          "$ref": "#/$defs/Cluster"
        },
        "topics": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "propertyTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "eras": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "buyingStages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "updatedAt": {
          "type": "string",
          "format": "date"
        },
        "reviewedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "limitations": {
          "type": [
            "string",
            "null"
          ]
        },
        "score": {
          "type": "number"
        },
        "matchedTerms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "matchedSections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MatchedSection"
          }
        }
      },
      "additionalProperties": false
    }
  }
}