Skip to content

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

Open
@jtmueller

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions