{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trustwell/json-schema/trustwell-supplier-list-response-schema.json",
  "title": "SupplierListResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trustwell-suppliers-api-openapi.yml#/components/schemas/SupplierListResponse",
  "type": "object",
  "properties": {
    "suppliers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Supplier"
      }
    },
    "total": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    }
  },
  "$defs": {
    "Supplier": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "inactive",
            "pending"
          ]
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "countryCode": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}