Skip to content

Commit

Permalink
Final adjustments in Parser documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrodamascena committed Sep 12, 2024
1 parent 8746dc6 commit 1cf39f2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/utilities/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ This utility provides data parsing and deep validation using [Pydantic](https://
* Defines data in pure Python classes, then parse, validate and extract only what you want
* Built-in envelopes to unwrap, extend, and validate popular event sources payloads
* Enforces type hints at runtime with user-friendly errors
* Support for Pydantic v2
* Support only Pydantic v2

## Getting started

### Install

Powertools for AWS Lambda (Python) supports Pydantic v2.
!!! info "This is not necessary if you're installing Powertools for AWS Lambda (Python) via [Lambda Layer/SAR](../index.md#lambda-layer){target="_blank"}"

#### Using Pydantic v2
You need to bring Pydantic v2.0.3 or later as an external dependency.

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.

Add `aws-lambda-powertools` and `pydantic>=2.0.3` as a dependency in your preferred tool: _e.g._, _requirements.txt_, _pyproject.toml_.
Add `aws-lambda-powertools[parser]` as a dependency in your preferred tool: _e.g._, _requirements.txt_, _pyproject.toml_.

### Defining models

Expand Down

0 comments on commit 1cf39f2

Please sign in to comment.