{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/tettra/main/json-schema/page-result.json",
  "title": "PageResult",
  "description": "A Tettra knowledge base page returned from a search query.",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the page."
    },
    "title": {
      "type": "string",
      "description": "Title of the page."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp of when the page was last updated."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the page in Tettra."
    },
    "content": {
      "type": "string",
      "description": "Text content of the page."
    },
    "owner": {
      "type": "object",
      "description": "The user who owns the page.",
      "properties": {
        "id": {
          "type": "integer",
          "description": "User identifier."
        },
        "name": {
          "type": "string",
          "description": "Display name of the page owner."
        }
      }
    },
    "category": {
      "$ref": "category.json"
    }
  },
  "required": ["id", "title", "url"]
}
