{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deepskyai-com/json-schema/deepskyai-com-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deepskyai-com-openapi.json#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "source": {
      "type": "string"
    },
    "matches": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchMatch"
      }
    },
    "provider": {
      "$ref": "#/$defs/Provider"
    }
  },
  "$defs": {
    "Provider": {
      "type": "object",
      "description": "Attribution object included on every search response.",
      "properties": {
        "name": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "details": {
          "type": "string"
        },
        "contact": {
          "type": "string"
        }
      }
    },
    "SearchMatch": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string"
        },
        "heading_path": {
          "type": [
            "string",
            "null"
          ]
        },
        "metadata": {
          "type": "object",
          "additionalProperties": true
        },
        "document_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "score": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    }
  }
}