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/utilities/parser.md
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Both are also able to parse either an object or JSON string as an input.
44
44
Be cautious when using multiple decorators that expect event to have a specific structure, the order of evaluation for decorators is from bottom to top.
45
45
46
46
=== "Middy middleware"
47
-
```typescript hl_lines="34"
47
+
```typescript hl_lines="22"
48
48
--8<-- "examples/snippets/parser/middy.ts"
49
49
```
50
50
@@ -157,7 +157,7 @@ If you want to extend a schema and transform a JSON stringified payload to an ob
157
157
If you want to parse a DynamoDB stream event with unmarshalling, you can use the helper function `DynamoDBMarshalled`:
158
158
159
159
=== "DynamoDBStreamSchema with DynamoDBMarshalled"
@@ -230,26 +230,24 @@ The `ParsedResult` object will have `success`, `data`, or `error` and `original
230
230
If the parsing is successful, the `data` field will contain the parsed event, otherwise you can access the `error` field and the `originalEvent` to handle the error and recover the original event.
0 commit comments