{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgechat-ai/json-schema/edgechat-ai-tree-schema.json",
  "title": "Tree",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgechat-ai-trees-api-openapi.yml#/components/schemas/Tree",
  "type": "object",
  "properties": {
    "tree": {
      "type": "string",
      "enum": [
        "topic",
        "geo"
      ]
    },
    "format": {
      "type": "integer",
      "const": 1
    },
    "revision": {},
    "articles": {
      "type": "integer"
    },
    "nodes": {
      "type": "array",
      "description": "[id, label, parent index, own articles]; an id beginning with a dot continues its parent's id.",
      "items": {
        "type": "array",
        "prefixItems": [
          {
            "type": "string"
          },
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "integer"
          }
        ]
      }
    }
  }
}