Skip to content

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

Description

@jtmueller

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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