{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prijsprofeet-be/json-schema/prijsprofeet-be-forecast-response-schema.json",
  "title": "ForecastResponse",
  "description": "\"Profeet voorspelt\": when this product is likely on promotion again.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prijsprofeet-be-openapi.yml#/components/schemas/ForecastResponse",
  "properties": {
    "tier": {
      "type": "string",
      "title": "Tier",
      "description": "`sterk` or `matig`"
    },
    "label": {
      "type": "string",
      "title": "Label",
      "description": "Display text for `tier`"
    },
    "prob": {
      "type": "integer",
      "title": "Prob",
      "description": "Probability in percent"
    },
    "start": {
      "type": "string",
      "title": "Start",
      "description": "Start of the predicted window (ISO date)"
    },
    "end": {
      "type": "string",
      "title": "End",
      "description": "End of the predicted window (ISO date)"
    },
    "low": {
      "type": "number",
      "title": "Low",
      "description": "Lowest promotion price seen"
    },
    "high": {
      "type": "number",
      "title": "High",
      "description": "Median promotion price seen"
    },
    "span": {
      "type": "integer",
      "title": "Span",
      "description": "Months of history the forecast reads"
    },
    "promoCount": {
      "type": "integer",
      "title": "Promocount",
      "description": "Promotions in that history"
    },
    "retailer": {
      "type": "string",
      "title": "Retailer"
    },
    "recentPromos": {
      "type": "integer",
      "title": "Recentpromos",
      "description": "Promotions in the last 180 days"
    },
    "backtestHitRate": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Backtesthitrate",
      "description": "How often this product's own past rhythm came true"
    },
    "probSource": {
      "type": "string",
      "title": "Probsource",
      "description": "`table` or `fallback`"
    },
    "retailerDisplay": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Retailerdisplay"
    }
  },
  "type": "object",
  "required": [
    "tier",
    "label",
    "prob",
    "start",
    "end",
    "low",
    "high",
    "span",
    "promoCount",
    "retailer",
    "recentPromos",
    "probSource"
  ]
}