File tree 1 file changed +4
-2
lines changed
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
57
57
=== "event_parser_decorator.py"
58
58
59
59
```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
61
61
from aws_lambda_powertools.utilities.typing import LambdaContext
62
+ from typing import List, Optional
62
63
63
64
import json
64
65
@@ -80,7 +81,7 @@ Use the decorator for fail fast scenarios where you want your Lambda function to
80
81
print(event.description)
81
82
print(event.items)
82
83
83
- order_items = [items for item in event.items]
84
+ order_items = [item for item in event.items]
84
85
...
85
86
86
87
payload = {
@@ -107,6 +108,7 @@ Use this standalone function when you want more control over the data validation
107
108
108
109
```python hl_lines="21 30"
109
110
from aws_lambda_powertools.utilities.parser import parse, BaseModel, ValidationError
111
+ from typing import List, Optional
110
112
111
113
class OrderItem(BaseModel):
112
114
id: int
You can’t perform that action at this time.
0 commit comments