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/content/utilities/parser.mdx
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ Use the decorator for fail fast scenarios where you want your Lambda function to
58
58
59
59
`event_parser` decorator will throw a `ValidationError` if your event cannot be parsed according to the model.
60
60
61
+
> NOTE: **This decorator will replace the `event` object with the parsed model if successful**. This means you might be careful when nesting other decorators that expect `event` to be a `dict`.
62
+
61
63
```python:title=event_parser_decorator.py
62
64
from aws_lambda_powertools.utilities.parser import event_parser, BaseModel, ValidationError
63
65
from aws_lambda_powertools.utilities.typing import LambdaContext
0 commit comments