{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dream-sports/json-schema/dream-sports-send-message-request-schema.json",
  "title": "SendMessageRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dream-sports-communication-api-openapi.yml#/components/schemas/SendMessageRequest",
  "type": "object",
  "required": [
    "channel",
    "to",
    "templateName",
    "templateParams"
  ],
  "properties": {
    "channel": {
      "type": "string",
      "description": "Communication channel",
      "enum": [
        "email",
        "sms"
      ]
    },
    "to": {
      "type": "string",
      "description": "Recipient identifier (email address for email channel, phone number for SMS channel)"
    },
    "templateName": {
      "type": "string",
      "description": "Name of the template to use for rendering the message"
    },
    "templateParams": {
      "type": "object",
      "description": "Template parameters as a JSON object",
      "additionalProperties": true
    }
  }
}