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
When using the EventBridgeEnvelope to parse an event, the error returned by the envelope should contain the correct path so that customers can easily find the root cause of the issue.
Current Behavior
This is the error emitted:
ParseError: Failed to parse envelope. This error was caused by: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"name"
],
"message": "Required"
}
].
The correct path should be ["detail", "name"] since the validation applies to the detail field.
Expected Behavior
When using the
EventBridgeEnvelope
to parse an event, the error returned by the envelope should contain the correct path so that customers can easily find the root cause of the issue.Current Behavior
This is the error emitted:
The correct path should be
["detail", "name"]
since the validation applies to thedetail
field.Code snippet
and using the following code:
Steps to Reproduce
N/A
Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
22.x
Packaging format used
npm
Execution logs
The text was updated successfully, but these errors were encountered: