{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/shelf-planogram.json",
 "description": "The data prop of <ShelfPlanogram> (Chartory chart 059).",
 "type": "object",
 "title": "ShelfPlanogramData",
 "properties": {
  "shelves": {
   "type": "array",
   "items": {
    "type": "array",
    "items": {
     "type": "object",
     "title": "ShelfPlanogramShelf",
     "properties": {
      "name": {
       "type": "string",
       "description": "The name shown on the chart."
      },
      "w": {
       "type": "number",
       "description": "The product's width on the shelf, relative to the others on it."
      },
      "pct": {
       "type": "number",
       "description": "The share, in percent."
      }
     },
     "required": [
      "name",
      "w",
      "pct"
     ]
    }
   },
   "description": "The shelves, top to bottom; one entry per product."
  },
  "low": {
   "type": "number",
   "description": "The low-stock threshold."
  },
  "out": {
   "type": "number",
   "description": "The out-of-stock count."
  }
 },
 "required": [
  "shelves",
  "low",
  "out"
 ]
}
