Skip to content

Commit 82b166c

Browse files
pydantic v2: comment
1 parent 6f8c52b commit 82b166c

File tree

1 file changed

+1
-0
lines changed
  • aws_lambda_powertools/utilities/parser/models

1 file changed

+1
-0
lines changed

aws_lambda_powertools/utilities/parser/models/apigw.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def check_message_id(cls, values):
7777
raise ValueError("messageId is available only when the `eventType` is `MESSAGE`")
7878
return values
7979

80+
# validator to normalize requestTimeEpoch
8081
@validator("requestTimeEpoch", pre=True)
8182
def normalize_timestamp(cls, value):
8283
date_utc = datetime.fromtimestamp(int(value) / 1000, tz=timezone.utc)

0 commit comments

Comments
 (0)