From 868b621943e0847cd03c7e4e6c4b7a9c217fb5d4 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Sun, 5 Jul 2026 14:16:42 -0500 Subject: [PATCH] Mark text/markdown_text arg_group as not required in chat methods The [text, markdown_text] mutually_exclusive arg_group in chat.postEphemeral, chat.postMessage, chat.scheduleMessage and chat.update was missing a required flag, which downstream consumers (e.g. slack-ruby-client) interpret as required: true by default, generating an 'exactly one of' (XOR) validation. In practice these methods only require at most one of text/markdown_text (they can both be omitted as long as another required argument, e.g. attachments or blocks, is present), so add required: false to make this an at-most-one constraint instead of exactly-one. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Daniel (dB.) Doubrovkine --- methods/chat/chat.postEphemeral.json | 1 + methods/chat/chat.postMessage.json | 1 + methods/chat/chat.scheduleMessage.json | 1 + methods/chat/chat.update.json | 1 + 4 files changed, 4 insertions(+) diff --git a/methods/chat/chat.postEphemeral.json b/methods/chat/chat.postEphemeral.json index 539d8d2e..c2ae3a89 100644 --- a/methods/chat/chat.postEphemeral.json +++ b/methods/chat/chat.postEphemeral.json @@ -151,6 +151,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ] diff --git a/methods/chat/chat.postMessage.json b/methods/chat/chat.postMessage.json index 674dddf5..6039a4f9 100644 --- a/methods/chat/chat.postMessage.json +++ b/methods/chat/chat.postMessage.json @@ -207,6 +207,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ] diff --git a/methods/chat/chat.scheduleMessage.json b/methods/chat/chat.scheduleMessage.json index bcf55679..6c4381e2 100644 --- a/methods/chat/chat.scheduleMessage.json +++ b/methods/chat/chat.scheduleMessage.json @@ -168,6 +168,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ] diff --git a/methods/chat/chat.update.json b/methods/chat/chat.update.json index 38f49091..b4d8089c 100644 --- a/methods/chat/chat.update.json +++ b/methods/chat/chat.update.json @@ -183,6 +183,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ]