{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comp-ai/json-schema/comp-ai-update-finding-dto-schema.json",
  "title": "UpdateFindingDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comp-ai-findings-api-openapi.yml#/components/schemas/UpdateFindingDto",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "Finding status",
      "enum": [
        "open",
        "ready_for_review",
        "needs_revision",
        "closed"
      ]
    },
    "type": {
      "type": "string",
      "description": "Finding type",
      "enum": [
        "soc2",
        "iso27001",
        "pci_dss",
        "hipaa",
        "gdpr",
        "iso9001",
        "iso42001"
      ]
    },
    "severity": {
      "type": "string",
      "description": "Severity",
      "enum": [
        "low",
        "medium",
        "high",
        "critical"
      ]
    },
    "content": {
      "type": "string",
      "description": "Finding content/message",
      "maxLength": 5000
    },
    "revisionNote": {
      "type": [
        "object",
        "null"
      ],
      "description": "Auditor note when requesting revision",
      "maxLength": 2000
    }
  }
}