{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Vulnerability",
  "title": "Vulnerability",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Vulnerability identifier",
      "example": "abc123"
    },
    "cveIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Associated CVE identifiers",
      "example": []
    },
    "severity": {
      "type": "string",
      "enum": [
        "critical",
        "high",
        "medium",
        "low"
      ],
      "example": "critical"
    },
    "cvssScore": {
      "type": "number",
      "description": "CVSS base score",
      "example": 42.5
    },
    "description": {
      "type": "string",
      "example": "A sample description."
    },
    "affectedServers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of affected server IDs",
      "example": []
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "resolved",
        "in-progress",
        "accepted-risk"
      ],
      "example": "open"
    },
    "availableFixes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of available fix IDs",
      "example": []
    },
    "publishedDate": {
      "type": "string",
      "format": "date-time",
      "example": "2026-01-15T10:30:00Z"
    },
    "discoveredDate": {
      "type": "string",
      "format": "date-time",
      "example": "2026-01-15T10:30:00Z"
    }
  }
}