{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meacheal-ai/json-schema/meacheal-ai-paginated-fabrics-schema.json",
  "title": "PaginatedFabrics",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meacheal-ai-openapi.yml#/components/schemas/PaginatedFabrics",
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "has_more": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FabricSummary"
      }
    },
    "attribution": {
      "type": "string"
    }
  },
  "required": [
    "limit",
    "offset",
    "has_more",
    "data",
    "attribution"
  ],
  "$defs": {
    "FabricSummary": {
      "type": "object",
      "properties": {
        "fabric_id": {
          "type": "string"
        },
        "name_cn": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "enum": [
            "woven",
            "knit",
            "nonwoven",
            "leather",
            "fur",
            "functional"
          ]
        },
        "subcategory": {
          "type": "string"
        },
        "declared_weight_gsm": {
          "type": "number"
        },
        "tested_weight_gsm": {
          "type": [
            "number",
            "null"
          ],
          "description": "Pro/Enterprise tier only"
        },
        "declared_composition": {
          "type": "object"
        },
        "tested_composition": {
          "type": [
            "object",
            "null"
          ],
          "description": "Pro/Enterprise tier only"
        },
        "price_range_rmb": {
          "type": "object",
          "properties": {
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "unit": {
              "type": "string"
            }
          }
        },
        "suitable_for": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "data_confidence": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "verified",
            "partially_verified",
            "unverified"
          ]
        },
        "updated_at": {
          "type": "string"
        }
      }
    }
  }
}