Skip to content

Commit de53dd6

Browse files
pydantic v2: comment
1 parent 8daf90c commit de53dd6

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/apigwv2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class RequestContextV2(BaseModel):
5555
timeEpoch: datetime
5656
http: RequestContextV2Http
5757

58+
# validator to normalize timestamp
5859
@validator("timeEpoch", pre=True)
5960
def normalize_timestamp(cls, value):
6061
date_utc = datetime.fromtimestamp(int(value) / 1000, tz=timezone.utc)

0 commit comments

Comments
 (0)