{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateSmtpTemplate",
  "title": "CreateSmtpTemplate",
  "type": "object",
  "required": [
    "templateName",
    "sender"
  ],
  "properties": {
    "templateName": {
      "type": "string",
      "description": "Name for the new template."
    },
    "subject": {
      "type": "string",
      "description": "Default subject line for the template."
    },
    "htmlContent": {
      "type": "string",
      "description": "HTML content for the template body."
    },
    "sender": {
      "type": "object",
      "description": "Default sender identity for the template.",
      "required": [
        "email"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Sender display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "Sender email address."
        }
      }
    },
    "replyTo": {
      "type": "string",
      "format": "email",
      "description": "Default reply-to email address."
    },
    "isActive": {
      "type": "boolean",
      "description": "Whether to activate the template immediately."
    }
  }
}