{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/reach-tree.json",
 "description": "The data prop of <ReachTree> (Chartory chart 121).",
 "type": "object",
 "title": "ReachTreeData",
 "properties": {
  "root": {
   "type": "object",
   "title": "ReachTreeRoot",
   "properties": {
    "label": {
     "type": "string",
     "description": "The name shown on the chart."
    }
   },
   "required": [
    "label"
   ],
   "description": "The root."
  },
  "scopes": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ReachTreeScope",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "kind": {
      "enum": [
       "write",
       "read"
      ],
      "description": "The kind."
     },
     "systems": {
      "type": "array",
      "items": {
       "type": "object",
       "title": "ReachTreeSystem",
       "properties": {
        "label": {
         "type": "string",
         "description": "The name shown on the chart."
        },
        "sub": {
         "type": "string",
         "description": "The second line under the label."
        }
       },
       "required": [
        "label"
       ]
      },
      "description": "One entry per system."
     }
    },
    "required": [
     "label",
     "kind",
     "systems"
    ]
   },
   "description": "One entry per scope."
  }
 },
 "required": [
  "root",
  "scopes"
 ]
}
