From 8009ad5692001ef644b240840844f06554ef0e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Ga=C5=A1pari=C4=87?= <56818232+codedoga@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:51:14 +0100 Subject: [PATCH] Fix event object structure according to AWS rules (#1379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Gašparić <56818232+codedoga@users.noreply.github.com> --- crates/notify/src/event.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/notify/src/event.rs b/crates/notify/src/event.rs index ad70e51e9..569798c3a 100644 --- a/crates/notify/src/event.rs +++ b/crates/notify/src/event.rs @@ -49,7 +49,7 @@ pub struct Object { pub size: Option, /// The entity tag (ETag) of the object #[serde(skip_serializing_if = "Option::is_none")] - pub etag: Option, + pub e_tag: Option, /// The content type of the object #[serde(skip_serializing_if = "Option::is_none")] pub content_type: Option, @@ -162,7 +162,7 @@ impl Event { object: Object { key: key.to_string(), size: Some(1024), - etag: Some("etag123".to_string()), + e_tag: Some("etag123".to_string()), content_type: Some("application/octet-stream".to_string()), user_metadata: Some(user_metadata), version_id: Some("1".to_string()), @@ -225,7 +225,7 @@ impl Event { if !is_removed_event { s3_metadata.object.size = Some(args.object.size); - s3_metadata.object.etag = args.object.etag.clone(); + s3_metadata.object.e_tag = args.object.etag.clone(); s3_metadata.object.content_type = args.object.content_type.clone(); // Filter out internal reserved metadata let mut user_metadata = HashMap::new();