{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/rota-lanes.json",
 "description": "The data prop of <RotaLanes> (Chartory chart 123).",
 "type": "object",
 "title": "RotaLanesData",
 "properties": {
  "days": {
   "type": "number",
   "description": "The number of days."
  },
  "dl": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The day labels."
  },
  "segs": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "RotaLanesShift",
    "properties": {
     "who": {
      "type": "string",
      "description": "Who is on the shift."
     },
     "hours": {
      "type": "string",
      "description": "The hours as shown."
     },
     "from": {
      "type": "number",
      "description": "Where it starts."
     },
     "to": {
      "type": "number",
      "description": "Where it ends."
     },
     "you": {
      "type": "boolean",
      "description": "Marks your own shift."
     }
    },
    "required": [
     "who",
     "hours",
     "from",
     "to"
    ]
   },
   "description": "The segments."
  },
  "now": {
   "type": "number",
   "description": "Where now is on the axis."
  },
  "weekend": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "number"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The weekend ranges: [start, end]."
  },
  "marker": {
   "type": "object",
   "title": "RotaLanesMarker",
   "properties": {
    "h": {
     "type": "number",
     "description": "The hour of the marker."
    },
    "text": {
     "type": "string",
     "description": "The label as shown."
    }
   },
   "required": [
    "h",
    "text"
   ],
   "description": "A marked hour and its label."
  }
 },
 "required": [
  "days",
  "dl",
  "segs",
  "now",
  "weekend",
  "marker"
 ]
}
