diff --git a/Peaky.Slack.BlockKit/Elements/ButtonElement.cs b/Peaky.Slack.BlockKit/Elements/ButtonElement.cs index e3747fb..4673650 100644 --- a/Peaky.Slack.BlockKit/Elements/ButtonElement.cs +++ b/Peaky.Slack.BlockKit/Elements/ButtonElement.cs @@ -9,7 +9,7 @@ public class ButtonElement : IBlockElement /// /// The type of element. In this case type is always button. /// - [JsonProperty("button")] + [JsonProperty("type")] public string Type => "button"; /// diff --git a/Peaky.Slack.BlockKit/Layout/SectionBlock.cs b/Peaky.Slack.BlockKit/Layout/SectionBlock.cs index 86c3167..31038e9 100644 --- a/Peaky.Slack.BlockKit/Layout/SectionBlock.cs +++ b/Peaky.Slack.BlockKit/Layout/SectionBlock.cs @@ -12,12 +12,12 @@ public class SectionBlock : ILayoutBlock /// [JsonProperty("type")] public string Type => "section"; - + /// /// The text for the block, in the form of a text object. /// Maximum length for the text in this field is 3000 characters. /// - [JsonProperty("text")] + [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] public TextComposition Text; ///