{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/glowjakt-se/json-schema/glowjakt-se-offer-list-schema.json",
  "title": "OfferList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/glowjakt-se-openapi.json#/components/schemas/OfferList",
  "type": "object",
  "properties": {
    "ean": {
      "type": [
        "string",
        "null"
      ]
    },
    "product_name": {
      "type": "string"
    },
    "brand": {
      "type": "string"
    },
    "image_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "offer_count": {
      "type": "integer",
      "description": "Total number of store offers listed below, including those out of stock."
    },
    "offers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "store_name": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "original_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "in_stock": {
            "type": "boolean"
          },
          "affiliate_url": {
            "type": "string",
            "description": "Tracked buy link to this store (https://{market-domain}/go/{id}?t=...). Signed and valid for 48 hours from the response; it redirects (302) to the store."
          },
          "is_cheapest": {
            "type": "boolean"
          },
          "content_value": {
            "type": [
              "number",
              "null"
            ],
            "description": "Package quantity in base unit (ml or g). German market (country=de) only — basis for the Grundpreis unit price (PAngV)."
          },
          "content_unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Base unit for content_value: \"ml\" or \"g\". German market only."
          }
        }
      }
    }
  }
}