{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bigcommerce/main/json-schema/bigcommerce-available-filter-schema.json",
  "title": "AvailableFilter",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bigcommerce-search-filters-api-openapi.yml#/components/schemas/AvailableFilter",
  "type": "object",
  "oneOf": [
    {
      "$ref": "#/$defs/AvailableNormalFilter"
    },
    {
      "$ref": "#/$defs/AvailablePriceFilter"
    },
    {
      "$ref": "#/$defs/AvailableOtherFilter"
    }
  ],
  "x-internal": false,
  "$defs": {
    "AvailableNormalFilter": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "product_count": {
          "type": "integer"
        },
        "type": {
          "type": "string",
          "enum": [
            "category",
            "brand",
            "rating",
            "product"
          ]
        }
      },
      "title": "AvailableNormalFilter",
      "x-tags": [
        "Models"
      ]
    },
    "AvailableOtherFilter": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "other"
          ]
        }
      },
      "title": "AvailableOtherFilter",
      "x-internal": false
    },
    "AvailablePriceFilter": {
      "description": "",
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "price_range_max": {
          "type": "number"
        },
        "price_range_min": {
          "type": "number"
        },
        "type": {
          "type": "string",
          "enum": [
            "price"
          ]
        }
      },
      "title": "AvailablePriceFilter",
      "x-internal": false
    }
  }
}