{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/permission-matrix.json",
 "description": "The data prop of <PermissionMatrix> (Chartory chart 127).",
 "type": "object",
 "title": "PermissionMatrixData",
 "properties": {
  "roles": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "PermissionMatrixRole",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "draft": {
      "type": "boolean",
      "description": "Marks it as a draft."
     }
    },
    "required": [
     "label"
    ]
   },
   "description": "One entry per role."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "PermissionMatrixRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "cells": {
      "type": "string",
      "description": "One character per role, in role order."
     }
    },
    "required": [
     "label",
     "cells"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "roles",
  "rows"
 ]
}
