{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-product-list-filters-response-schema.json",
  "title": "ProductListFiltersResponse",
  "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/ProductListFiltersResponse",
  "required": [
    "categoryData",
    "filterRanges",
    "filters"
  ],
  "type": "object",
  "properties": {
    "categoryData": {
      "$ref": "#/$defs/Categories"
    },
    "filterRanges": {
      "type": "array",
      "description": "The list of range filters that is associated with the given search term or category.",
      "items": {
        "$ref": "#/$defs/FilterRanges"
      }
    },
    "filters": {
      "type": "array",
      "description": "The list of filters that is associated with the given search term or category.",
      "items": {
        "$ref": "#/$defs/Filters"
      }
    }
  },
  "$defs": {
    "Categories": {
      "required": [
        "categoryName",
        "categoryValues"
      ],
      "type": "object",
      "properties": {
        "categoryName": {
          "type": "string",
          "description": "The name of the categories."
        },
        "categoryValues": {
          "type": "array",
          "description": "The list of available categories.",
          "items": {
            "$ref": "#/$defs/CategoryValues"
          }
        }
      },
      "description": "The list of categories that are available to further narrow down search results, for the given search term and category."
    },
    "CategoryValues": {
      "type": "object",
      "properties": {
        "categoryValueId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The id of the category. This id can be used in other endpoints, like Get product list."
        },
        "categoryValueName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the category."
        }
      },
      "description": "The list of available categories."
    },
    "FilterRanges": {
      "required": [
        "max",
        "min",
        "rangeId",
        "rangeName",
        "unit"
      ],
      "type": "object",
      "properties": {
        "rangeId": {
          "type": "string",
          "description": "The id of the range filter product can be found under."
        },
        "rangeName": {
          "type": "string",
          "description": "The name of the range filter product can be found under."
        },
        "min": {
          "type": "number",
          "description": "The minimum value for the range that can be used to filter results."
        },
        "max": {
          "type": "number",
          "description": "The maximum value for the range that can be used to filter results."
        },
        "unit": {
          "type": "string",
          "description": "The unit that applies to the min and max range values."
        }
      },
      "description": "The list of range filters that is associated with the given search term or category."
    },
    "FilterValues": {
      "required": [
        "filterValueId"
      ],
      "type": "object",
      "properties": {
        "filterValueId": {
          "type": "string",
          "description": "The unique identifier of the filter value."
        },
        "filterValueName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the filter value."
        }
      },
      "description": "The list of filter values in this filter."
    },
    "Filters": {
      "required": [
        "filterName",
        "filterValues"
      ],
      "type": "object",
      "properties": {
        "filterName": {
          "type": "string",
          "description": "The name of the filter."
        },
        "filterValues": {
          "type": "array",
          "description": "The list of filter values in this filter.",
          "items": {
            "$ref": "#/$defs/FilterValues"
          }
        }
      },
      "description": "The list of filters that is associated with the given search term or category."
    }
  }
}