Skip to content

Commit 4901919

Browse files
docs(parser): fix highlighted line (aws-powertools#2064)
Co-authored-by: Ruben Fonseca <[email protected]>
1 parent d55f218 commit 4901919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/utilities/parser.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Use the decorator for fail fast scenarios where you want your Lambda function to
6363
???+ note
6464
**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`.
6565

66-
```python hl_lines="18" title="Parsing and validating upon invocation with event_parser decorator"
66+
```python hl_lines="19" title="Parsing and validating upon invocation with event_parser decorator"
6767
from aws_lambda_powertools.utilities.parser import event_parser, BaseModel
6868
from aws_lambda_powertools.utilities.typing import LambdaContext
6969
from typing import List, Optional
@@ -111,7 +111,7 @@ handler(event=json.dumps(payload), context=LambdaContext()) # also works if even
111111

112112
Use this standalone function when you want more control over the data validation process, for example returning a 400 error for malformed payloads.
113113

114-
```python hl_lines="21 30" title="Using standalone parse function for more flexibility"
114+
```python hl_lines="21 31" title="Using standalone parse function for more flexibility"
115115
from aws_lambda_powertools.utilities.parser import parse, BaseModel, ValidationError
116116
from typing import List, Optional
117117

0 commit comments

Comments
 (0)