{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-report-problem-request-schema.json",
  "title": "ReportProblemRequest",
  "description": "Request body of `POST /support/reports`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-support-api-openapi.yml#/components/schemas/ReportProblemRequest",
  "properties": {
    "context": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/SupportReportContext",
          "description": "What the client knew about the failure, filled in by the client.",
          "__uniqueRefKey": "#/components/schemas/SupportReportContext__8"
        }
      ]
    },
    "email": {
      "description": "Where to answer. Read only without a session; a signed-in user's own address is used.",
      "maxLength": 320,
      "minLength": 0,
      "type": [
        "null",
        "string"
      ]
    },
    "message": {
      "description": "What happened, in the person's words.",
      "maxLength": 4000,
      "minLength": 3,
      "type": "string"
    },
    "turnstileToken": {
      "description": "The bot check's token. Required without a session, ignored with one.",
      "maxLength": 4096,
      "type": [
        "null",
        "string"
      ]
    }
  },
  "required": [
    "message"
  ],
  "type": "object",
  "$defs": {
    "SupportReportContext": {
      "description": "What a client knew about the failure being reported. Every field is the client's claim; none is checked\nagainst the database.",
      "properties": {
        "clientVersion": {
          "description": "The client's own version.",
          "maxLength": 64,
          "minLength": 0,
          "type": [
            "null",
            "string"
          ]
        },
        "code": {
          "description": "The error code the client was showing.",
          "maxLength": 100,
          "minLength": 0,
          "type": [
            "null",
            "string"
          ]
        },
        "deployId": {
          "description": "The deploy the client was working on.",
          "pattern": "^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$",
          "type": [
            "null",
            "string"
          ]
        },
        "siteId": {
          "description": "The site the client was working on.",
          "pattern": "^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$",
          "type": [
            "null",
            "string"
          ]
        },
        "source": {
          "description": "Which client: `web`, `cli`, `mcp` or `link`. `web` when absent.",
          "maxLength": 16,
          "minLength": 0,
          "type": [
            "null",
            "string"
          ]
        },
        "traceId": {
          "description": "The API trace id the client was showing.",
          "maxLength": 128,
          "minLength": 0,
          "type": [
            "null",
            "string"
          ]
        },
        "url": {
          "description": "The page the report was sent from.",
          "maxLength": 2048,
          "minLength": 0,
          "type": [
            "null",
            "string"
          ]
        }
      },
      "type": "object"
    }
  }
}