Skip to content

Commit b3184f0

Browse files
committed
docs(validation): add install section
Signed-off-by: heitorlessa <[email protected]>
1 parent af8f75e commit b3184f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/utilities/validation.md

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ This utility provides JSON Schema validation for events and responses, including
1818
???+ tip
1919
All examples shared in this documentation are available within the [project repository](https://github.com/awslabs/aws-lambda-powertools-python/tree/develop/examples){target="_blank"}.
2020

21+
### Install
22+
23+
!!! info "This is not necessary if you're installing Powertools via [Lambda Layer](../index.md#lambda-layer){target="_blank"}"
24+
25+
Add `aws-lambda-powertools[validation]` as a dependency in your preferred tool: _e.g._, _requirements.txt_, _pyproject.toml_.
26+
27+
This will ensure you have the required dependencies before using Validation.
28+
2129
You can validate inbound and outbound events using [`validator` decorator](#validator-decorator).
2230

2331
You can also use the standalone `validate` function, if you want more control over the validation process such as handling a validation error.

0 commit comments

Comments
 (0)