Skip to content

Commit 37ad000

Browse files
committed
fix: pydantic v2 tests
1 parent a0d5449 commit 37ad000

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/event_handler/openapi

1 file changed

+1
-1
lines changed

aws_lambda_powertools/event_handler/openapi/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class SecurityBase(BaseModel):
441441
description: Optional[str] = None
442442

443443
if PYDANTIC_V2:
444-
model_config = {"extra": "allow"}
444+
model_config = {"extra": "allow", "populate_by_name": True}
445445

446446
else:
447447

0 commit comments

Comments
 (0)