{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/uptime-bars.json",
 "description": "The data prop of <UptimeBars> (Chartory chart 070).",
 "type": "object",
 "title": "UptimeBarsData",
 "properties": {
  "from": {
   "type": "string",
   "description": "Where it starts."
  },
  "to": {
   "type": "string",
   "description": "Where it ends."
  },
  "toks": {
   "type": "object",
   "additionalProperties": {
    "type": "string"
   },
   "description": "The colour token per key."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "UptimeBarsRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "days": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "The days."
     }
    },
    "required": [
     "label",
     "text",
     "days"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "from",
  "to",
  "toks",
  "rows"
 ]
}
