{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-directory-search-result-schema.json",
  "title": "DirectorySearchResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-directories-api-openapi.yml#/components/schemas/DirectorySearchResult",
  "type": "object",
  "properties": {
    "entries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DirectoryEntry"
      }
    },
    "total": {
      "type": "integer",
      "description": "Total number of matching entries"
    },
    "facets": {
      "type": "object",
      "properties": {
        "cities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "count": {
                "type": "integer"
              }
            }
          }
        },
        "interests": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "count": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "DirectoryEntry": {
      "type": "object",
      "properties": {
        "ghii": {
          "type": "string",
          "description": "Owner GHII"
        },
        "displayName": {
          "type": "string"
        },
        "bio": {
          "type": "string",
          "description": "Short biography text"
        },
        "interests": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "city": {
          "type": "string"
        },
        "area": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "semantic": {
          "type": "number",
          "description": "Semantic similarity score (0-1, present when search uses embeddings)"
        }
      }
    }
  }
}