Skip to content

Commit

Permalink
add comment why etag and size is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
am29d committed Apr 24, 2024
1 parent 43570da commit c3fa9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/parser/src/schemas/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const S3EventNotificationEventBridgeDetailSchema = z.object({
}),
object: z.object({
key: z.string(),
size: z.number().nonnegative().optional(),
etag: z.string().optional(),
size: z.number().nonnegative().optional(), // not present in DeleteObject events
etag: z.string().optional(), // not present in DeleteObject events
'version-id': z.string().optional(),
sequencer: z.string().optional(),
}),
Expand Down

0 comments on commit c3fa9a6

Please sign in to comment.