{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-create-issue-input-schema.json",
  "title": "CreateIssueInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roark-issue-api-openapi.yml#/components/schemas/CreateIssueInput",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 280,
      "description": "Short headline — required, max 280 characters"
    },
    "summary": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 2000,
      "description": "Longer-form context — optional, max 2000 characters"
    },
    "severity": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "LOW",
        "MEDIUM",
        "HIGH",
        "CRITICAL"
      ],
      "description": "Coarse priority. Null when unset."
    },
    "evidence": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreateIssueEvidence"
      },
      "maxItems": 50,
      "default": [],
      "description": "Calls / chats to attach as evidence. Optional; max 50 entries per issue."
    }
  },
  "required": [
    "title"
  ],
  "$defs": {
    "CreateIssueEvidence": {
      "type": "object",
      "properties": {
        "callId": {
          "type": "string",
          "format": "uuid"
        },
        "chatId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "description": "A call or chat to attach as evidence (exactly one of `callId` / `chatId`)"
    }
  }
}