{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/email-dlp-api-email-attachment-structure.json",
  "name": "EmailAttachment",
  "description": "EmailAttachment schema from Palo Alto Networks Email DLP API",
  "type": "object",
  "properties": {
    "filename": {
      "type": "string",
      "description": "Attachment filename."
    },
    "content_type": {
      "type": "string",
      "description": "MIME content type of the attachment."
    },
    "size": {
      "type": "int32",
      "description": "Attachment size in bytes."
    },
    "has_matches": {
      "type": "boolean",
      "description": "Whether the attachment contained data pattern matches."
    },
    "match_count": {
      "type": "int32",
      "description": "Number of data pattern matches in the attachment."
    },
    "patterns_matched": {
      "type": "array",
      "description": "Names of data patterns that matched in the attachment.",
      "items": {
        "type": "string"
      }
    }
  }
}
