{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://schema.mydesignsystem.com/search-result.schema.json",
  "title": "Search Result",
  "description": "Search result component for displaying individual search results.",
  "type": "object",
  "properties": {
    "url": {
      "title": "URL",
      "type": "string",
      "description": "A URL linking to the search result or more information.",
      "examples": [
        "https://www.example.com/ai-conference-2023"
      ]
    },
    "title": {
      "title": "Title",
      "type": "string",
      "description": "The title of the search result.",
      "examples": [
        "AI Conference 2023"
      ]
    },
    "imageColSize": {
      "title": "Image Row Size",
      "type": "string",
      "description": "The reserved space of the image row.",
      "default": "small",
      "enum": [
        "none",
        "small",
        "large"
      ]
    },
    "previewImage": {
      "title": "Preview Image",
      "type": "string",
      "description": "A URL to an image preview for the search result."
    },
    "initialMatch": {
      "title": "Initial Match",
      "type": "string",
      "description": "The initial search match or summary of the search result."
    },
    "matches": {
      "title": "Matches",
      "type": "array",
      "description": "An array of search matches.",
      "items": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "$id": "http://schema.mydesignsystem.com/search-result-match.schema.json",
        "title": "Search Result Match",
        "type": "object",
        "properties": {
          "title": {
            "title": "Title",
            "type": "string",
            "description": "The title of the match.",
            "examples": [
              "Panel Discussion: Ethics in AI"
            ]
          },
          "snippet": {
            "title": "Text",
            "type": "string",
            "description": "The main content or description of the search result.",
            "examples": [
              "Experts debate the ethical challenges and responsibilities of deploying AI technologies."
            ]
          },
          "url": {
            "title": "URL",
            "type": "string",
            "description": "A URL linking to the specific match or more information.",
            "examples": [
              "https://www.example.com/ai-conference-2023/panel-discussion"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "showLink": {
      "title": "Show Link",
      "type": "boolean",
      "description": "Whether to display the link to the search result.",
      "default": true
    }
  },
  "additionalProperties": false
}