{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/replay-lanes.json",
 "description": "The data prop of <ReplayLanes> (Chartory chart 124).",
 "type": "object",
 "title": "ReplayLanesData",
 "properties": {
  "days": {
   "type": "number",
   "description": "The number of days."
  },
  "dl": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The day labels."
  },
  "quiet": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "number"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The quiet ranges: [start, end]."
  },
  "lanes": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ReplayLanesLane",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "items": {
      "type": "array",
      "items": {
       "type": "object",
       "title": "ReplayLanesItem",
       "properties": {
        "d": {
         "type": "number",
         "description": "The day."
        },
        "held": {
         "type": "boolean",
         "description": "Marks the item as held."
        }
       },
       "required": [
        "d"
       ]
      },
      "description": "One entry per item."
     },
     "total": {
      "type": "number",
      "description": "The total."
     },
     "totalText": {
      "type": "string",
      "description": "The total's label."
     },
     "totalShort": {
      "type": "string",
      "description": "The total's label at the small sizes."
     }
    },
    "required": [
     "label",
     "tok",
     "items",
     "total",
     "totalText",
     "totalShort"
    ]
   },
   "description": "One entry per lane."
  },
  "digests": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ReplayLanesDigest",
    "properties": {
     "d": {
      "type": "number",
      "description": "The day of the digest."
     },
     "n": {
      "type": "number",
      "description": "The count."
     }
    },
    "required": [
     "d",
     "n"
    ]
   },
   "description": "One entry per digest."
  }
 },
 "required": [
  "days",
  "dl",
  "quiet",
  "lanes",
  "digests"
 ]
}
