{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-office/json-schema/microsoft-office-send-mail-request-schema.json",
  "title": "SendMailRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-office-mail-api-openapi.yml#/components/schemas/SendMailRequest",
  "type": "object",
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "object",
      "properties": {
        "subject": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "properties": {
            "contentType": {
              "type": "string",
              "enum": [
                "Text",
                "HTML"
              ]
            },
            "content": {
              "type": "string"
            }
          }
        },
        "toRecipients": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "emailAddress": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "saveToSentItems": {
      "type": "boolean"
    }
  }
}