{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-office/json-schema/microsoft-office-message-collection-schema.json",
  "title": "MessageCollection",
  "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/MessageCollection",
  "type": "object",
  "properties": {
    "@odata.context": {
      "type": "string"
    },
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Message"
      }
    }
  },
  "$defs": {
    "Message": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "bodyPreview": {
          "type": "string"
        },
        "from": {
          "type": "object",
          "properties": {
            "emailAddress": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "address": {
                  "type": "string"
                }
              }
            }
          }
        },
        "toRecipients": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "receivedDateTime": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}