Commit c34b71f
committed
feat: add Table variant to SlackBlock enum
Slack's Block Kit includes a `table` block type that is not yet
represented in the SlackBlock enum. Any API response containing
a table block causes deserialization to fail with:
unknown variant `table`, expected one of `section`, `header`, ...
Add `Table(serde_json::Value)` using the same untyped-value pattern
as the existing `ShareShortcut` and `Event` variants, so consumers
can round-trip or inspect table blocks without a hard failure.
A proper typed SlackTableBlock struct can follow in a future PR once
the full table block schema is documented.1 parent 90ab115 commit c34b71f
1 file changed
Lines changed: 3 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
1133 | 1135 | | |
1134 | 1136 | | |
1135 | 1137 | | |
1136 | | - | |
| 1138 | + | |
1137 | 1139 | | |
1138 | 1140 | | |
1139 | 1141 | | |
1140 | 1142 | | |
1141 | 1143 | | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | 1144 | | |
1156 | 1145 | | |
1157 | 1146 | | |
| |||
1505 | 1494 | | |
1506 | 1495 | | |
1507 | 1496 | | |
1508 | | - | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | 1497 | | |
1519 | 1498 | | |
1520 | 1499 | | |
| |||
0 commit comments