File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,9 @@ Use the decorator for fail fast scenarios where you want your Lambda function to
5757=== "event_parser_decorator.py"
5858
5959 ```python hl_lines="18"
60- from aws_lambda_powertools.utilities.parser import event_parser, BaseModel, ValidationError
60+ from aws_lambda_powertools.utilities.parser import event_parser, BaseModel
6161 from aws_lambda_powertools.utilities.typing import LambdaContext
62+ from typing import List, Optional
6263
6364 import json
6465
@@ -80,7 +81,7 @@ Use the decorator for fail fast scenarios where you want your Lambda function to
8081 print(event.description)
8182 print(event.items)
8283
83- order_items = [items for item in event.items]
84+ order_items = [item for item in event.items]
8485 ...
8586
8687 payload = {
@@ -107,6 +108,7 @@ Use this standalone function when you want more control over the data validation
107108
108109 ```python hl_lines="21 30"
109110 from aws_lambda_powertools.utilities.parser import parse, BaseModel, ValidationError
111+ from typing import List, Optional
110112
111113 class OrderItem(BaseModel):
112114 id: int
You can’t perform that action at this time.
0 commit comments