{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meacheal-ai/json-schema/meacheal-ai-paginated-suppliers-schema.json",
  "title": "PaginatedSuppliers",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meacheal-ai-openapi.yml#/components/schemas/PaginatedSuppliers",
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "has_more": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SupplierSummary"
      }
    },
    "attribution": {
      "type": "string"
    }
  },
  "required": [
    "limit",
    "offset",
    "has_more",
    "data",
    "attribution"
  ],
  "$defs": {
    "SupplierSummary": {
      "type": "object",
      "properties": {
        "supplier_id": {
          "type": "string"
        },
        "company_name_cn": {
          "type": "string"
        },
        "company_name_en": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "factory",
            "trading_company",
            "workshop",
            "cooperative"
          ]
        },
        "tier": {
          "type": [
            "string",
            "null"
          ]
        },
        "province": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "product_types": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ownership_type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "own_factory",
            "brand_factory_external",
            "pure_broker",
            "cooperative"
          ]
        },
        "declared_capacity_monthly": {
          "type": [
            "integer",
            "null"
          ]
        },
        "verified_capacity_monthly": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Pro/Enterprise tier only"
        },
        "quality_score": {
          "type": [
            "number",
            "null"
          ]
        },
        "delivery_score": {
          "type": [
            "number",
            "null"
          ]
        },
        "compliance_status": {
          "type": [
            "string",
            "null"
          ]
        },
        "data_confidence": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "verified",
            "partially_verified",
            "unverified"
          ]
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}