{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meacheal-ai/json-schema/meacheal-ai-counted-supplier-fabrics-schema.json",
  "title": "CountedSupplierFabrics",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meacheal-ai-openapi.yml#/components/schemas/CountedSupplierFabrics",
  "type": "object",
  "properties": {
    "supplier_id": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SupplierFabricLink"
      }
    },
    "attribution": {
      "type": "string"
    }
  },
  "required": [
    "count",
    "data",
    "attribution"
  ],
  "$defs": {
    "SupplierFabricLink": {
      "type": "object",
      "properties": {
        "supplier_id": {
          "type": "string"
        },
        "fabric_id": {
          "type": "string"
        },
        "price_rmb": {
          "type": [
            "number",
            "null"
          ]
        },
        "moq": {
          "type": [
            "integer",
            "null"
          ]
        },
        "lead_time_days": {
          "type": [
            "integer",
            "null"
          ]
        },
        "last_quoted_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "name_cn": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "declared_weight_gsm": {
          "type": [
            "number",
            "null"
          ]
        },
        "declared_composition": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    }
  }
}