{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/leaseweb/main/json-schema/leaseweb-get-report-message-list-result-schema.json",
  "title": "getReportMessageListResult",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leaseweb-abuse-openapi.yml#/components/schemas/getReportMessageListResult",
  "properties": {
    "messages": {
      "description": "An array of the posted messages.",
      "items": {
        "$ref": "#/$defs/message"
      },
      "type": "array"
    },
    "_metadata": {
      "$ref": "#/$defs/_metadata"
    }
  },
  "type": "object",
  "$defs": {
    "_metadata": {
      "description": "Metadata about the collection",
      "properties": {
        "totalCount": {
          "description": "Total amount of elements in this collection",
          "minimum": 0,
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "description": "The offset used to generate this response",
          "minimum": 0,
          "type": "integer"
        },
        "limit": {
          "default": 5,
          "description": "The limit used to generate this response",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "limit",
        "offset",
        "totalCount"
      ],
      "title": "metadata",
      "type": "object"
    },
    "attachment": {
      "properties": {
        "id": {
          "description": "The file ID of the attachment.",
          "type": "string"
        },
        "mimeType": {
          "description": "The MIME type of the attachment.",
          "type": "string"
        },
        "filename": {
          "description": "The filename of the attachment.",
          "type": "string"
        }
      },
      "title": "attachment",
      "type": "object"
    },
    "message": {
      "properties": {
        "postedBy": {
          "description": "A string to indicating if the message was posted by the customer or the abuse agent.",
          "enum": [
            "CUSTOMER",
            "ABUSE_AGENT"
          ],
          "type": "string"
        },
        "postedAt": {
          "description": "The timestamp when the message was posted.",
          "type": "string"
        },
        "body": {
          "description": "The posted message.",
          "type": "string"
        },
        "attachment": {
          "$ref": "#/$defs/attachment"
        }
      },
      "title": "message",
      "type": "object"
    }
  }
}