{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/comp-ai/main/json-schema/comp-ai-update-risk-dto-schema.json",
  "title": "UpdateRiskDto",
  "x-generated": "2026-10-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comp-ai-openapi.json#/components/schemas/UpdateRiskDto",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Risk title"
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the risk"
    },
    "category": {
      "type": "string",
      "description": "Risk category",
      "enum": [
        "customer",
        "fraud",
        "governance",
        "operations",
        "other",
        "people",
        "regulatory",
        "reporting",
        "resilience",
        "technology",
        "vendor_management"
      ]
    },
    "department": {
      "type": "string",
      "description": "Department responsible for the risk. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.",
      "maxLength": 64
    },
    "status": {
      "type": "string",
      "description": "Current status of the risk",
      "enum": [
        "open",
        "pending",
        "closed",
        "archived"
      ],
      "default": "open"
    },
    "likelihood": {
      "type": "string",
      "description": "Likelihood of the risk occurring",
      "enum": [
        "very_unlikely",
        "unlikely",
        "possible",
        "likely",
        "very_likely"
      ],
      "default": "very_unlikely"
    },
    "impact": {
      "type": "string",
      "description": "Impact if the risk materializes",
      "enum": [
        "insignificant",
        "minor",
        "moderate",
        "major",
        "severe"
      ],
      "default": "insignificant"
    },
    "residualLikelihood": {
      "type": "string",
      "description": "Residual likelihood after treatment",
      "enum": [
        "very_unlikely",
        "unlikely",
        "possible",
        "likely",
        "very_likely"
      ],
      "default": "very_unlikely"
    },
    "residualImpact": {
      "type": "string",
      "description": "Residual impact after treatment",
      "enum": [
        "insignificant",
        "minor",
        "moderate",
        "major",
        "severe"
      ],
      "default": "insignificant"
    },
    "treatmentStrategyDescription": {
      "type": "string",
      "description": "Description of the treatment strategy"
    },
    "treatmentStrategy": {
      "type": "string",
      "description": "Risk treatment strategy",
      "enum": [
        "accept",
        "avoid",
        "mitigate",
        "transfer"
      ],
      "default": "accept"
    },
    "assigneeId": {
      "type": "string",
      "description": "ID of the user assigned to this risk"
    }
  }
}