{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/deal-pipeline.json",
 "description": "The data prop of <DealPipeline> (Chartory chart 083).",
 "type": "object",
 "title": "DealPipelineData",
 "properties": {
  "fmt": {
   "x-function": "(v: number) => string",
   "description": "A function, so not JSON: pass it in code."
  },
  "stages": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "DealPipelineStage",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "deals": {
      "type": "array",
      "items": {
       "type": "array",
       "prefixItems": [
        {
         "type": "number"
        },
        {
         "type": "number"
        }
       ],
       "minItems": 2,
       "maxItems": 2
      },
      "description": "The deals."
     }
    },
    "required": [
     "label",
     "deals"
    ]
   },
   "description": "One entry per stage."
  }
 },
 "required": [
  "stages"
 ]
}
