{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudworldmodel-ai/json-schema/cloudworldmodel-ai-vulnerability-schema.json",
  "title": "Vulnerability",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudworldmodel-ai-chaos-engineering-api-openapi.yml#/components/schemas/Vulnerability",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "single_point_of_failure",
        "no_redundancy",
        "insufficient_capacity",
        "slow_recovery",
        "cascading_risk",
        "no_failover",
        "zone_dependency",
        "health_check_replacement"
      ],
      "description": "Machine-readable vulnerability category."
    },
    "id": {
      "type": "string",
      "description": "Unique vulnerability identifier"
    },
    "severity": {
      "type": "string",
      "enum": [
        "critical",
        "high",
        "medium",
        "low"
      ],
      "description": "Severity level"
    },
    "title": {
      "type": "string",
      "description": "Short vulnerability title"
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the vulnerability"
    },
    "impact": {
      "type": "string",
      "description": "Impact on the system"
    },
    "recommendation": {
      "type": "string",
      "description": "How to fix the vulnerability"
    },
    "detectedAt": {
      "type": "integer",
      "description": "Simulation step when vulnerability was detected"
    },
    "affectedResources": {
      "type": "array",
      "description": "Resources affected by this vulnerability",
      "items": {
        "type": "string"
      }
    }
  }
}