{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/ownership-matrix.json",
 "description": "The data prop of <OwnershipMatrix> (Chartory chart 122).",
 "type": "object",
 "title": "OwnershipMatrixData",
 "properties": {
  "cols": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "OwnershipMatrixCol",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "n": {
      "type": "number",
      "description": "The count."
     }
    },
    "required": [
     "label"
    ]
   },
   "description": "One entry per column."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "OwnershipMatrixRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "cells": {
      "type": "array",
      "items": {
       "type": "object",
       "title": "OwnershipMatrixCell",
       "properties": {
        "t": {
         "enum": [
          "fine",
          "look",
          "broken",
          "waiting"
         ],
         "description": "The cell's state."
        },
        "long": {
         "type": "string",
         "description": "The long form of the label."
        },
        "short": {
         "type": "string",
         "description": "The short form of the label, for the small sizes."
        }
       },
       "required": [
        "t",
        "long",
        "short"
       ]
      },
      "description": "The cells, in order."
     }
    },
    "required": [
     "label",
     "cells"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "cols",
  "rows"
 ]
}
