Skip to content

Commit

Permalink
lib: fix verbatim in text object not block
Browse files Browse the repository at this point in the history
  • Loading branch information
sewenthy committed Sep 24, 2024
1 parent d484cb4 commit 077bb4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/echo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ let slack_echo_event_handler ctx event =
[
Section
{
verbatim = Some false;
text = { text_type = Mrkdwn; text = "some other text in a section" };
text = { verbatim = Some false; text_type = Mrkdwn; text = "some other text in a section" };
accessory = None;
};
];
Expand Down
2 changes: 1 addition & 1 deletion lib/slack.atd
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ type text_object_type = [
] <ocaml repr="classic">

type text_object <ocaml attr="deriving make"> = {
?verbatim: bool nullable;
text_type <json name="type"> : text_object_type;
text: string;
}

type message_text_block <ocaml attr="deriving make"> = {
?verbatim: bool nullable;
text: text_object;
?accessory: accessory_object nullable;
}
Expand Down

0 comments on commit 077bb4f

Please sign in to comment.