Skip to content

Support for Array webhook body payloads #51

Description

@paulRbr

Segment (an ETL from Twilio) has a “batching” feature on their webhooks publishing destination. Meaning that they can batch multiple events into a single webhook POST request with a body containing an array of those events.

Fuik currently only seems to support Hash-like event payloads. Events will fail when reading its payload with the error:

(bump):19:in '<main>': undefined method 'to_dot' for an instance of Array (NoMethodError)

      @webhook_event.payload.to_dot
                            ^^^^^^^
Did you mean?  to_set

What do you think of supporting Array-like payloads too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions