Skip to content

Commit aa2e8c5

Browse files
authored
feat: add Table variant to SlackBlock enum (#361)
Slack's Block Kit includes a `table` block type not yet represented in SlackBlock. Any conversations.history response containing a table block currently fails to deserialize entirely. Add Table(serde_json::Value) using the same untyped-value pattern as the existing ShareShortcut and Event variants. A properly typed SlackTableBlock struct can follow once the full schema is documented. Fixes #360
1 parent 90ab115 commit aa2e8c5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/models/blocks/kit.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ pub enum SlackBlock {
3939
ShareShortcut(serde_json::Value),
4040
#[serde(rename = "event")]
4141
Event(serde_json::Value),
42+
#[serde(rename = "table")]
43+
Table(serde_json::Value),
4244
}
4345

4446
#[skip_serializing_none]

0 commit comments

Comments
 (0)