You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/utilities/parser.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,19 +11,17 @@ This utility provides data parsing and deep validation using [Pydantic](https://
11
11
* Defines data in pure Python classes, then parse, validate and extract only what you want
12
12
* Built-in envelopes to unwrap, extend, and validate popular event sources payloads
13
13
* Enforces type hints at runtime with user-friendly errors
14
-
* Support for Pydantic v2
14
+
* Support only Pydantic v2
15
15
16
16
## Getting started
17
17
18
18
### Install
19
19
20
-
Powertools for AWS Lambda (Python) supports Pydantic v2.
20
+
!!! info "This is not necessary if you're installing Powertools for AWS Lambda (Python) via [Lambda Layer/SAR](../index.md#lambda-layer){target="_blank"}"
21
21
22
-
#### Using Pydantic v2
22
+
You need to bring Pydantic v2.0.3 or later as an external dependency.
23
23
24
-
You need to bring Pydantic v2.0.3 or later as an external dependency. Note that [we suppress Pydantic v2 deprecation warnings](https://github.com/aws-powertools/powertools-lambda-python/issues/2672){target="_blank"} to reduce noise and optimize log costs.
25
-
26
-
Add `aws-lambda-powertools` and `pydantic>=2.0.3` as a dependency in your preferred tool: _e.g._, _requirements.txt_, _pyproject.toml_.
24
+
Add `aws-lambda-powertools[parser]` as a dependency in your preferred tool: _e.g._, _requirements.txt_, _pyproject.toml_.
0 commit comments