{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-products-schema.json",
  "title": "Products",
  "description": "Container for multiple products.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bol-com-promotions-api-openapi.yml#/components/schemas/Products",
  "required": [
    "products"
  ],
  "type": "object",
  "properties": {
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Product"
      }
    }
  },
  "$defs": {
    "Product": {
      "required": [
        "ean"
      ],
      "type": "object",
      "properties": {
        "ean": {
          "type": "string",
          "description": "The EAN number associated with this product."
        },
        "relevanceScores": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/RelevanceScore"
          }
        },
        "maximumPrice": {
          "type": [
            "number",
            "null"
          ],
          "description": "The maximum price a product can have in order to be part of the promotion."
        }
      },
      "description": "A single product."
    },
    "RelevanceScore": {
      "type": "object",
      "properties": {
        "countryCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The country for which the relevance score has been calculated against.",
          "enum": [
            "NL",
            "BE",
            null
          ]
        },
        "relevanceScore": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The calculated relevance score for the product.",
          "format": "int32",
          "enum": [
            null
          ]
        }
      },
      "description": "The relevance score of a product in a promotion."
    }
  }
}