Skip to content

Commit c3fa9a6

Browse files
committed
add comment why etag and size is optional
1 parent 43570da commit c3fa9a6

File tree

1 file changed

+2
-2
lines changed
  • packages/parser/src/schemas

1 file changed

+2
-2
lines changed

Diff for: packages/parser/src/schemas/s3.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ const S3EventNotificationEventBridgeDetailSchema = z.object({
7272
}),
7373
object: z.object({
7474
key: z.string(),
75-
size: z.number().nonnegative().optional(),
76-
etag: z.string().optional(),
75+
size: z.number().nonnegative().optional(), // not present in DeleteObject events
76+
etag: z.string().optional(), // not present in DeleteObject events
7777
'version-id': z.string().optional(),
7878
sequencer: z.string().optional(),
7979
}),

0 commit comments

Comments
 (0)