{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meacheal-ai/json-schema/meacheal-ai-paginated-clusters-schema.json",
  "title": "PaginatedClusters",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meacheal-ai-openapi.yml#/components/schemas/PaginatedClusters",
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "has_more": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ClusterSummary"
      }
    },
    "attribution": {
      "type": "string"
    }
  },
  "required": [
    "limit",
    "offset",
    "has_more",
    "data",
    "attribution"
  ],
  "$defs": {
    "ClusterSummary": {
      "type": "object",
      "properties": {
        "cluster_id": {
          "type": "string"
        },
        "name_cn": {
          "type": "string"
        },
        "name_en": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "fabric_market",
            "garment_manufacturing",
            "accessories",
            "integrated"
          ]
        },
        "province": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "specialization": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "scale": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "mega",
            "large",
            "medium",
            "small"
          ]
        },
        "supplier_count": {
          "type": "integer"
        },
        "labor_cost_avg_rmb": {
          "type": [
            "number",
            "null"
          ]
        },
        "data_confidence": {
          "type": [
            "string",
            "null"
          ]
        },
        "updated_at": {
          "type": "string"
        }
      }
    }
  }
}