Skip to content

Commit

Permalink
slack: fix divider section
Browse files Browse the repository at this point in the history
  • Loading branch information
sewenthy committed May 17, 2024
1 parent 148516f commit b9a417d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/slack.atd
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ type message_text_block <ocaml attr="deriving make"> = {
?accessory: accessory_object nullable;
}

type divider = {
?empty: bool nullable; (* having a simple variant make Type_field adapter not work*)
}

type message_block = [
Section <json name="section"> of message_text_block
| Divider <json name="divider">
| Divider <json name="divider"> of divider
] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">

type post_message_req <ocaml attr="deriving make"> = {
Expand Down

0 comments on commit b9a417d

Please sign in to comment.