{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wordpress/refs/heads/main/json-schema/wordpress-search-result-schema.json",
  "title": "SearchResult",
  "description": "A search result object",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the search result",
      "example": 123
    },
    "title": {
      "type": "string",
      "description": "The title for the search result",
      "example": "My First WordPress Post"
    },
    "url": {
      "type": "string",
      "description": "URL for the search result",
      "example": "https://example.com/2026/04/my-first-post/"
    },
    "type": {
      "type": "string",
      "description": "The type of the search result",
      "example": "post"
    },
    "subtype": {
      "type": "string",
      "description": "The subtype of the search result",
      "example": "post"
    }
  }
}