Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch mode unusable when payload contains an "event" property. #250

Open
jtmueller opened this issue Jun 6, 2024 · 0 comments
Open

Watch mode unusable when payload contains an "event" property. #250

jtmueller opened this issue Jun 6, 2024 · 0 comments

Comments

@jtmueller
Copy link

I'm working on a lambda that processes DocuSign webhook payloads, which always have a top-level "event" property:

{
    "event": "envelope-completed",
    "apiVersion": "v2.1",
    "uri": "/restapi/v2.1/accounts/...",
    "retryCount": 0,
    // ...
}

The problem is that lambda-local sees the "event" property, and instead of wrapping the entire payload as the body of a simulated API Gateway event, the entire value of the event parameter passed to my lambda function becomes "envelope-completed".

Is there any way to get lambda-local to ignore the "event" property in the payload and just process it like normal? Maybe a command-line flag? I don't have any control over the format of the JSON I need my lambda to process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant