{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-search-api-openapi.yml#/components/schemas/SearchResponse",
  "type": "object",
  "required": [
    "query",
    "results"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchResult"
      }
    },
    "semantic": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "degraded": {
          "type": "boolean"
        }
      }
    }
  },
  "$defs": {
    "SearchResult": {
      "type": "object",
      "description": "Search result returned by scoped Developer API search.",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "contact",
            "touch"
          ]
        },
        "title": {
          "type": "string"
        },
        "subtitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "score": {
          "type": "number"
        },
        "match": {
          "type": "string",
          "enum": [
            "lexical",
            "semantic"
          ]
        }
      }
    }
  }
}