{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/opentext-cybersecurity/main/json-schema/opentext-cybersecurity-vulnerability-all-data-schema.json",
  "title": "VulnerabilityAllData",
  "description": "All data for the vulnerability",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opentext-cybersecurity-vulnerabilities-api-openapi.yml#/components/schemas/VulnerabilityAllData",
  "type": "object",
  "properties": {
    "summary": {
      "$ref": "#/$defs/VulnerabilitySummary",
      "description": "The vulnerability summary"
    },
    "details": {
      "$ref": "#/$defs/VulnerabilityDetails",
      "description": "The vulnerability details"
    },
    "recommendations": {
      "$ref": "#/$defs/VulnerabilityRecommendations",
      "description": "The vulnerability recommendations"
    },
    "screenshots": {
      "description": "List of vulnerability screenshots",
      "type": "array",
      "items": {
        "$ref": "#/$defs/VulnerabilityScreenshotItem"
      }
    },
    "history": {
      "description": "List of vulnerability history",
      "type": "array",
      "items": {
        "$ref": "#/$defs/VulnerabilityHistoryItem"
      }
    },
    "requestResponse": {
      "$ref": "#/$defs/VulnerabilityRequestResponse",
      "description": "The vulnerability request and response"
    },
    "headers": {
      "$ref": "#/$defs/VulnerabilityHeaders",
      "description": "The vulnerability headers"
    },
    "parameters": {
      "$ref": "#/$defs/VulnerabilityParameters",
      "description": "The vulnerability parameters"
    },
    "traces": {
      "description": "The vulnerability traces",
      "type": "array",
      "items": {
        "$ref": "#/$defs/VulnerabilityTraceItem"
      }
    },
    "auditOptions": {
      "$ref": "#/$defs/VulnerabilityAuditOptions",
      "description": "The vulnerability audit options"
    },
    "attributes": {
      "description": "The vulnerability attribute",
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttributeItemModel"
      }
    },
    "vulnId": {
      "description": "The vulnerability id",
      "type": "string"
    },
    "Id": {
      "format": "int32",
      "description": "The issue id",
      "type": "integer"
    },
    "releaseId": {
      "format": "int32",
      "description": "The release id",
      "type": "integer"
    }
  },
  "$defs": {
    "AttributeItemModel": {
      "type": "object",
      "properties": {
        "attributeName": {
          "description": "The attribute name",
          "type": "string"
        },
        "attributeValue": {
          "description": "The attribute value",
          "type": "string"
        }
      }
    },
    "AuditAction": {
      "description": "Audit Action",
      "type": "object",
      "properties": {
        "auditActionType": {
          "description": "The audit action type",
          "enum": [
            "AuditorStatus",
            "DeveloperStatus",
            "Severity",
            "User"
          ],
          "type": "string"
        },
        "auditActionTypeName": {
          "description": "The audit action type name",
          "type": "string"
        },
        "items": {
          "description": "List of audit action items",
          "type": "array",
          "items": {
            "$ref": "#/$defs/LookupItem"
          }
        }
      }
    },
    "AuditComment": {
      "description": "Audit Comment",
      "type": "object",
      "properties": {
        "username": {
          "description": "The user name",
          "type": "string"
        },
        "commentDate": {
          "format": "date-time",
          "description": "The comment date",
          "type": "string"
        },
        "comment": {
          "description": "The audit comment",
          "type": "string"
        }
      }
    },
    "LookupItem": {
      "description": "Lookup Item",
      "type": "object",
      "properties": {
        "value": {
          "description": "The value property",
          "type": "string"
        },
        "text": {
          "description": "The text property",
          "type": "string"
        },
        "group": {
          "description": "The group property",
          "type": "string"
        }
      }
    },
    "SecureCodeWarriorModel": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "videoUrls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "cweTrainings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrainingLinks"
          }
        }
      }
    },
    "SonatypeRecommendations": {
      "description": "Sonatype Recommendations",
      "type": "object",
      "properties": {
        "explanation": {
          "description": "Explanation",
          "type": "string"
        },
        "detection": {
          "description": "Detection",
          "type": "string"
        },
        "recommendation": {
          "description": "Recommendations",
          "type": "string"
        },
        "nextNonVulnerableVersion": {
          "description": "Next non vulnerable version",
          "type": "string"
        },
        "greatestNonVulnerableVersion": {
          "description": "Greatest non vulnerable version",
          "type": "string"
        },
        "links": {
          "description": "An array of links",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "TrainingLinks": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "VulnerabilityAuditOptions": {
      "description": "Vulnerability Audit Options",
      "type": "object",
      "properties": {
        "canAudit": {
          "description": "Indicates if the current user can audit the vulnerability",
          "type": "boolean"
        },
        "canChallenge": {
          "description": "Indicates if the current user can challenge the vulnerability",
          "type": "boolean"
        },
        "canEdit": {
          "description": "Indicates if the current user can edit the vulnerability",
          "type": "boolean"
        },
        "inAuditMode": {
          "description": "Indicates if the release is in audit mode",
          "type": "boolean"
        },
        "auditProcessing": {
          "description": "Indicates if the audit is processing for the release",
          "type": "boolean"
        },
        "auditActions": {
          "description": "List of available audit actions",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuditAction"
          }
        },
        "vulnId": {
          "description": "The vulnerability id",
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "description": "The issue id",
          "type": "integer"
        },
        "releaseId": {
          "format": "int32",
          "description": "The release id",
          "type": "integer"
        }
      }
    },
    "VulnerabilityComplianceCategory": {
      "description": "Vulnerability compliance category.",
      "type": "object",
      "properties": {
        "categoryName": {
          "description": "The compliance category name.",
          "type": "string"
        },
        "complianceItems": {
          "description": "The compliance items for the current category.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityComplianceItem"
          }
        }
      }
    },
    "VulnerabilityComplianceItem": {
      "description": "Vulnerability compliance item.",
      "type": "object",
      "properties": {
        "complianceRule": {
          "description": "The compliance rule.",
          "type": "string"
        }
      }
    },
    "VulnerabilityDetails": {
      "description": "Vulnerability Details",
      "type": "object",
      "properties": {
        "isStatic": {
          "description": "Indicates if the vulnerability is static",
          "type": "boolean"
        },
        "summary": {
          "description": "The vulnerability summary",
          "type": "string"
        },
        "explanation": {
          "description": "The vulnerability explanation",
          "type": "string"
        },
        "instanceId": {
          "description": "The vulnerability instance id",
          "type": "string"
        },
        "ruleId": {
          "description": "The vulnerability rule id",
          "type": "string"
        },
        "impact": {
          "description": "The vulnerability impact",
          "type": "string"
        },
        "probability": {
          "description": "The vulnerability probability",
          "type": "string"
        },
        "severity": {
          "description": "The vulnerability severity",
          "type": "string"
        },
        "confidence": {
          "description": "The vulnerability confidence",
          "type": "string"
        },
        "analyzerName": {
          "description": "The vulnerability analyzer name",
          "type": "string"
        },
        "source": {
          "description": "The vulnerability source name",
          "type": "string"
        },
        "sink": {
          "description": "The vulnerability sink name",
          "type": "string"
        },
        "complianceCategories": {
          "description": "The compliance rules which pertain to this vulnerability, grouped by category.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityComplianceCategory"
          }
        },
        "remainingRemediationGracePeriodDays": {
          "format": "int32",
          "description": "The number of days remaining in the remediation grace period\nThis will be negative if the grace period has expired",
          "type": "integer"
        },
        "vulnId": {
          "description": "The vulnerability id",
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "description": "The issue id",
          "type": "integer"
        },
        "releaseId": {
          "format": "int32",
          "description": "The release id",
          "type": "integer"
        }
      }
    },
    "VulnerabilityHeader": {
      "description": "Vulnerability Header",
      "type": "object",
      "properties": {
        "name": {
          "description": "The header name",
          "type": "string"
        },
        "value": {
          "description": "The header value",
          "type": "string"
        },
        "cookieHeaders": {
          "description": "The list of cookie headers",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityHeader"
          }
        }
      }
    },
    "VulnerabilityHeaders": {
      "description": "Vulnerability Headers",
      "type": "object",
      "properties": {
        "requestHeaders": {
          "description": "The request headers",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityHeader"
          }
        },
        "responseHeaders": {
          "description": "The response headers",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityHeader"
          }
        },
        "vulnId": {
          "description": "The vulnerability id",
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "description": "The issue id",
          "type": "integer"
        },
        "releaseId": {
          "format": "int32",
          "description": "The release id",
          "type": "integer"
        }
      }
    },
    "VulnerabilityHistoryItem": {
      "description": "Vulnerability History Item",
      "type": "object",
      "properties": {
        "content": {
          "description": "The history content",
          "type": "string"
        },
        "historyDateTime": {
          "format": "date-time",
          "description": "The history date time",
          "type": "string"
        },
        "user": {
          "description": "The user that created the history item",
          "type": "string"
        },
        "historyType": {
          "description": "The history type of the item",
          "type": "string"
        }
      }
    },
    "VulnerabilityParameter": {
      "description": "Vulnerability Parameter",
      "type": "object",
      "properties": {
        "name": {
          "description": "Name",
          "type": "string"
        },
        "value": {
          "description": "Value",
          "type": "string"
        },
        "decodedValue": {
          "description": "Decoded value",
          "type": "string"
        }
      }
    },
    "VulnerabilityParameters": {
      "description": "Vulnerability Parameters",
      "type": "object",
      "properties": {
        "queryParameters": {
          "description": "Query parameters",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityParameter"
          }
        },
        "postParameters": {
          "description": "Post parameters",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityParameter"
          }
        },
        "vulnId": {
          "description": "The vulnerability id",
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "description": "The issue id",
          "type": "integer"
        },
        "releaseId": {
          "format": "int32",
          "description": "The release id",
          "type": "integer"
        }
      }
    },
    "VulnerabilityRecommendations": {
      "description": "Vulnerability Recommendations",
      "type": "object",
      "properties": {
        "isStatic": {
          "description": "Is static",
          "type": "boolean"
        },
        "recommendations": {
          "description": "Recommendations",
          "type": "string"
        },
        "tips": {
          "description": "Tips",
          "type": "string"
        },
        "references": {
          "description": "References",
          "type": "string"
        },
        "sonatype": {
          "$ref": "#/$defs/SonatypeRecommendations"
        },
        "secureCodeWarrior": {
          "$ref": "#/$defs/SecureCodeWarriorModel"
        },
        "vulnId": {
          "description": "The vulnerability id",
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "description": "The issue id",
          "type": "integer"
        },
        "releaseId": {
          "format": "int32",
          "description": "The release id",
          "type": "integer"
        }
      }
    },
    "VulnerabilityRequestResponse": {
      "description": "Vulnerability Request Response",
      "type": "object",
      "properties": {
        "requestContent": {
          "description": "Request content",
          "type": "string"
        },
        "responseContent": {
          "description": "Response content",
          "type": "string"
        },
        "vulnId": {
          "description": "The vulnerability id",
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "description": "The issue id",
          "type": "integer"
        },
        "releaseId": {
          "format": "int32",
          "description": "The release id",
          "type": "integer"
        }
      }
    },
    "VulnerabilityScreenshotItem": {
      "description": "Vulnerability Screenshot Item",
      "type": "object",
      "properties": {
        "id": {
          "format": "int32",
          "description": "Id",
          "type": "integer"
        },
        "name": {
          "description": "Name",
          "type": "string"
        },
        "description": {
          "description": "Description",
          "type": "string"
        },
        "uploadDate": {
          "format": "date-time",
          "description": "Upload date",
          "type": "string"
        }
      }
    },
    "VulnerabilitySummary": {
      "description": "Vulnerability Summary",
      "type": "object",
      "properties": {
        "lineNumber": {
          "format": "int32",
          "description": "Line number",
          "type": "integer"
        },
        "primaryLocation": {
          "description": "Primary location",
          "type": "string"
        },
        "primaryLocationFull": {
          "description": "The full Primary location",
          "type": "string"
        },
        "severity": {
          "description": "Severity",
          "type": "string"
        },
        "isSuppressed": {
          "description": "Is suppressed",
          "type": "boolean"
        },
        "assignedUser": {
          "description": "Assigned user",
          "type": "string"
        },
        "developerStatus": {
          "description": "Developer status",
          "type": "string"
        },
        "auditorStatus": {
          "description": "Auditor status",
          "type": "string"
        },
        "auditPending": {
          "description": "Audit pending",
          "type": "boolean"
        },
        "auditPendingAuditorStatus": {
          "description": "Audit pending auditor status",
          "type": "string"
        },
        "auditPendingSeverity": {
          "description": "Audit pending severity",
          "type": "string"
        },
        "auditPendingSuppression": {
          "description": "Audit pending suppression",
          "type": "string"
        },
        "comments": {
          "description": "Comments",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuditComment"
          }
        },
        "notes": {
          "description": "Notes",
          "type": "string"
        },
        "bugSubmitted": {
          "description": "Bug Submitted",
          "type": "boolean"
        },
        "bugLink": {
          "description": "Bug Link",
          "type": "string"
        },
        "fileLocations": {
          "description": "File locations for open source vulnerabilities",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "vulnId": {
          "description": "The vulnerability id",
          "type": "string"
        },
        "Id": {
          "format": "int32",
          "description": "The issue id",
          "type": "integer"
        },
        "releaseId": {
          "format": "int32",
          "description": "The release id",
          "type": "integer"
        }
      }
    },
    "VulnerabilityTraceEntry": {
      "description": "Vulnerability Trace Entry",
      "type": "object",
      "properties": {
        "index": {
          "format": "int32",
          "description": "Index",
          "type": "integer"
        },
        "lineNumber": {
          "format": "int32",
          "description": "Line number",
          "type": "integer"
        },
        "displayText": {
          "description": "Display text",
          "type": "string"
        },
        "location": {
          "description": "Location",
          "type": "string"
        },
        "actionType": {
          "description": "Action type",
          "type": "string"
        }
      }
    },
    "VulnerabilityTraceItem": {
      "description": "Vulnerability Trace Item",
      "type": "object",
      "properties": {
        "traceIndex": {
          "format": "int32",
          "description": "Trace index",
          "type": "integer"
        },
        "traceEntries": {
          "description": "List of trace entries",
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityTraceEntry"
          }
        }
      }
    }
  }
}