{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/balladic-com/json-schema/balladic-com-create-chat-message-request-schema.json",
  "title": "CreateChatMessageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/balladic-com-chat-api-openapi.yml#/components/schemas/CreateChatMessageRequest",
  "properties": {
    "attachments": {
      "items": {
        "$ref": "#/$defs/AttachmentMeta"
      },
      "type": "array",
      "maxItems": 10,
      "title": "Attachments",
      "default": []
    },
    "body": {
      "additionalProperties": true,
      "type": "object",
      "title": "Body"
    },
    "reply_to_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reply To Id"
    }
  },
  "type": "object",
  "required": [
    "body"
  ],
  "$defs": {
    "AttachmentMeta": {
      "properties": {
        "s3_key": {
          "type": "string",
          "maxLength": 512,
          "minLength": 1,
          "title": "S3 Key"
        },
        "filename": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "title": "Filename"
        },
        "content_type": {
          "type": "string",
          "maxLength": 127,
          "minLength": 1,
          "title": "Content Type"
        },
        "size_bytes": {
          "type": "integer",
          "maximum": 52428800.0,
          "exclusiveMinimum": 0.0,
          "title": "Size Bytes"
        }
      },
      "type": "object",
      "required": [
        "s3_key",
        "filename",
        "content_type",
        "size_bytes"
      ],
      "title": "AttachmentMeta"
    }
  }
}