{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-product-placement-response-schema.json",
  "title": "ProductPlacementResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bol-com-products-api-openapi.yml#/components/schemas/ProductPlacementResponse",
  "required": [
    "categories",
    "url"
  ],
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The URL of the product on the webshop."
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Category"
      }
    }
  },
  "$defs": {
    "Category": {
      "required": [
        "categoryId",
        "categoryName"
      ],
      "type": "object",
      "properties": {
        "categoryId": {
          "type": "string",
          "description": "The id of the parent category which the product belongs to."
        },
        "categoryName": {
          "type": "string",
          "description": "The name of the parent category which the product belongs to."
        },
        "subcategories": {
          "type": [
            "array",
            "null"
          ],
          "description": "The subcategories which the product belongs to.",
          "items": {
            "$ref": "#/$defs/SubCategory"
          }
        }
      }
    },
    "SubCategory": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The id of the subcategory which the product belongs to."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the subcategory which the product belongs to."
        },
        "subcategories": {
          "type": [
            "array",
            "null"
          ],
          "description": "The subcategories which the product belongs to.",
          "items": {
            "$ref": "#/$defs/SubCategory"
          }
        }
      },
      "description": "The subcategories which the product belongs to."
    }
  }
}