{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bigcommerce/main/json-schema/bigcommerce-category-tree-list-schema.json",
  "title": "CategoryTreeList",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bigcommerce-category-trees-api-openapi.yml#/components/schemas/CategoryTreeList",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tree"
      }
    },
    "meta": {
      "$ref": "#/$defs/MetaPaginationObject"
    }
  },
  "$defs": {
    "MetaPaginationObject": {
      "type": "object",
      "properties": {
        "pagination": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "minimum": 0
            },
            "count": {
              "type": "integer",
              "minimum": 0
            },
            "per_page": {
              "type": "integer",
              "minimum": 0
            },
            "current_page": {
              "type": "integer",
              "minimum": 1
            },
            "total_pages": {
              "type": "integer",
              "minimum": 0
            },
            "links": {
              "type": "object",
              "properties": {
                "next": {
                  "type": "string"
                },
                "current": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "x-tags": [
        "Models"
      ]
    },
    "Tree": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        "channels": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "x-tags": [
        "Models"
      ]
    }
  }
}