{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/glowjakt-se/json-schema/glowjakt-se-price-history-schema.json",
  "title": "PriceHistory",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/glowjakt-se-openapi.json#/components/schemas/PriceHistory",
  "type": "object",
  "properties": {
    "current_price": {
      "type": "number"
    },
    "lowest_price": {
      "type": "number"
    },
    "highest_price": {
      "type": "number"
    },
    "resolution": {
      "type": "string",
      "enum": [
        "weekly"
      ],
      "description": "Present only when `range` was used: each history point is the lowest price of that ISO week (dated by its Monday)."
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "price": {
            "type": "number"
          }
        }
      }
    }
  }
}