-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
chore(deps): bump pydantic from 2.9.2 to 2.10.0 (#5611)
* chore(deps): bump pydantic from 2.9.2 to 2.10.0 Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.9.2 to 2.10.0. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](pydantic/pydantic@v2.9.2...v2.10.0) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix models + make mypy happy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]>
1 parent
9768b51
commit 6ccc140
Showing
7 changed files
with
123 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
aws_lambda_powertools/utilities/parser/models/event_bridge.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
from datetime import datetime | ||
from typing import List, Optional | ||
|
||
from pydantic import BaseModel, Field | ||
from pydantic import BaseModel, ConfigDict, Field | ||
|
||
from aws_lambda_powertools.utilities.parser.types import RawDictOrModel | ||
|
||
|
||
class EventBridgeModel(BaseModel): | ||
model_config = ConfigDict(populate_by_name=True) | ||
|
||
version: str | ||
id: str # noqa: A003,VNE003 | ||
source: str | ||
account: str | ||
time: datetime | ||
region: str | ||
resources: List[str] | ||
detail_type: str = Field(None, alias="detail-type") | ||
detail_type: str = Field(..., alias="detail-type") | ||
detail: RawDictOrModel | ||
replay_name: Optional[str] = Field(None, alias="replay-name") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters