{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comp-ai/json-schema/comp-ai-create-finding-dto-schema.json",
  "title": "CreateFindingDto",
  "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/CreateFindingDto",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "description": "Task ID"
    },
    "evidenceSubmissionId": {
      "type": "string",
      "description": "Evidence submission ID"
    },
    "evidenceFormType": {
      "type": "string",
      "description": "Evidence form type",
      "enum": [
        "board-meeting",
        "it-leadership-meeting",
        "risk-committee-meeting",
        "meeting",
        "access-request",
        "whistleblower-report",
        "penetration-test",
        "rbac-matrix",
        "infrastructure-inventory",
        "employee-performance-evaluation",
        "network-diagram",
        "tabletop-exercise",
        "account-types"
      ]
    },
    "policyId": {
      "type": "string",
      "description": "Policy ID"
    },
    "vendorId": {
      "type": "string",
      "description": "Vendor ID"
    },
    "riskId": {
      "type": "string",
      "description": "Risk ID"
    },
    "memberId": {
      "type": "string",
      "description": "Member ID (person this finding targets)"
    },
    "deviceId": {
      "type": "string",
      "description": "Device ID"
    },
    "area": {
      "type": "string",
      "description": "Broad area when the finding is not tied to a specific item",
      "enum": [
        "people",
        "documents",
        "compliance",
        "risks",
        "vendors",
        "policies",
        "other"
      ]
    },
    "type": {
      "type": "string",
      "description": "Framework this finding is attributed to (must match a framework the organization has enabled)",
      "enum": [
        "soc2",
        "iso27001",
        "pci_dss",
        "hipaa",
        "gdpr",
        "iso9001",
        "iso42001"
      ],
      "default": "soc2"
    },
    "severity": {
      "type": "string",
      "description": "Severity",
      "enum": [
        "low",
        "medium",
        "high",
        "critical"
      ],
      "default": "medium"
    },
    "content": {
      "type": "string",
      "description": "Finding content/message",
      "maxLength": 5000
    }
  },
  "required": [
    "type",
    "content"
  ]
}