{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aibenchmarkindex-com/json-schema/aibenchmarkindex-com-product-category-schema.json",
  "title": "ProductCategory",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aibenchmarkindex-com-product-categories-api-openapi.yml#/components/schemas/ProductCategory",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "maxLength": 80,
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "group": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ]
    },
    "rank": {
      "default": 0,
      "type": "integer",
      "minimum": 0,
      "maximum": 9999
    },
    "product_count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "page_url": {
      "type": "string"
    }
  },
  "required": [
    "slug",
    "name",
    "description",
    "rank",
    "product_count",
    "page_url"
  ],
  "additionalProperties": false
}