Skip to content

Commit d3b988d

Browse files
authored
FIX: Mark size and eTag as optional attributes
Fixes ObjectRemoved API event, as they don't include these attributes. #1637 Signed-off-by: Diego Barreiro <[email protected]>
1 parent 4bee8cb commit d3b988d

File tree

1 file changed

+2
-2
lines changed
  • aws_lambda_powertools/utilities/parser/models

1 file changed

+2
-2
lines changed

Diff for: aws_lambda_powertools/utilities/parser/models/s3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class S3Bucket(BaseModel):
4343

4444
class S3Object(BaseModel):
4545
key: str
46-
size: NonNegativeFloat
47-
eTag: str
46+
size: Optional[NonNegativeFloat]
47+
eTag: Optional[str]
4848
sequencer: str
4949
versionId: Optional[str]
5050

0 commit comments

Comments
 (0)