{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trustwell/json-schema/trustwell-quality-incident-list-response-schema.json",
  "title": "QualityIncidentListResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trustwell-quality-api-openapi.yml#/components/schemas/QualityIncidentListResponse",
  "type": "object",
  "properties": {
    "incidents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/QualityIncident"
      }
    },
    "total": {
      "type": "integer"
    }
  },
  "$defs": {
    "QualityIncident": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "in_progress",
            "resolved",
            "closed"
          ]
        },
        "severity": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ]
        },
        "supplierId": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "resolvedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}