ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
138 stars 56 forks source link

[Websub] Unable to create custom subscriber for Webhook request that doesn't have payload #748

Open Chuhaa opened 3 years ago

Chuhaa commented 3 years ago

$Title

websub:ExtensionConfig extensionConfig = {
    topicIdentifier: websub:TOPIC_ID_HEADER,
    topicHeader: "X-Goog-Resource-State",
    headerResourceMap: {
        "sync": ["onInitialSync"],
        "exists": ["onIncrementalSync"]
    }
};

Error

incompatible mapping constructor expression for type 'map<[string,typedesc<record {| anydata...; |}>]>?'
ayeshLK commented 3 years ago

We have done a complete revamp in websub module and according to the latest design websub does not support this feature.