{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thecoindaily-co/json-schema/thecoindaily-co-support-request-schema.json",
  "title": "SupportRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/research-openapi.json#/components/schemas/SupportRequest",
  "properties": {
    "question": {
      "type": "string",
      "maxLength": 500,
      "minLength": 2,
      "title": "Question"
    },
    "page": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Page"
    },
    "control": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Control"
    },
    "detail": {
      "type": "boolean",
      "title": "Detail",
      "default": false
    },
    "history": {
      "items": {
        "$ref": "#/$defs/SupportTurn"
      },
      "type": "array",
      "maxItems": 6,
      "title": "History"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "question"
  ],
  "$defs": {
    "SupportTurn": {
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "title": "Role"
        },
        "content": {
          "type": "string",
          "maxLength": 800,
          "minLength": 1,
          "title": "Content"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "title": "SupportTurn"
    }
  }
}