From 6cbef70854e874260cc2473c2b4650dd743dcc43 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Tue, 11 Aug 2026 20:22:22 -0400 Subject: [PATCH] Add required: false to text/markdown_text arg_group patch source files Commit 868b6219 previously added required: false directly to the merged methods/chat/*.json output files (chat.postEphemeral, chat.postMessage, chat.scheduleMessage, chat.update) to mark the [text, markdown_text] mutually_exclusive arg_group as at-most-one instead of exactly-one. However, that fix only touched the generated output, not the methods/_patches/chat/*.json source files that api:methods:update merges on top of freshly scraped docs. The next doc scrape regenerated the merged files from the docs plus the (still-unfixed) patches, silently dropping the required: false flag again. This adds required: false to the patch source files instead, so the fix survives future `rake api:methods:update` runs, and regenerates the merged methods/chat/*.json files to match. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- methods/_patches/chat/chat.postEphemeral.json | 1 + methods/_patches/chat/chat.postMessage.json | 1 + methods/_patches/chat/chat.scheduleMessage.json | 1 + methods/_patches/chat/chat.update.json | 1 + methods/chat/chat.postEphemeral.json | 1 + methods/chat/chat.postMessage.json | 1 + methods/chat/chat.scheduleMessage.json | 1 + methods/chat/chat.update.json | 1 + 8 files changed, 8 insertions(+) diff --git a/methods/_patches/chat/chat.postEphemeral.json b/methods/_patches/chat/chat.postEphemeral.json index 61161136..6862938a 100644 --- a/methods/_patches/chat/chat.postEphemeral.json +++ b/methods/_patches/chat/chat.postEphemeral.json @@ -16,6 +16,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ] diff --git a/methods/_patches/chat/chat.postMessage.json b/methods/_patches/chat/chat.postMessage.json index 61161136..6862938a 100644 --- a/methods/_patches/chat/chat.postMessage.json +++ b/methods/_patches/chat/chat.postMessage.json @@ -16,6 +16,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ] diff --git a/methods/_patches/chat/chat.scheduleMessage.json b/methods/_patches/chat/chat.scheduleMessage.json index 61161136..6862938a 100644 --- a/methods/_patches/chat/chat.scheduleMessage.json +++ b/methods/_patches/chat/chat.scheduleMessage.json @@ -16,6 +16,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ] diff --git a/methods/_patches/chat/chat.update.json b/methods/_patches/chat/chat.update.json index 61161136..6862938a 100644 --- a/methods/_patches/chat/chat.update.json +++ b/methods/_patches/chat/chat.update.json @@ -16,6 +16,7 @@ "markdown_text" ], "desc": "Use either text or markdown_text, but not both.", + "required": false, "mutually_exclusive": true } ] diff --git a/methods/chat/chat.postEphemeral.json b/methods/chat/chat.postEphemeral.json index 642bae1b..bd6fb6e5 100644 --- a/methods/chat/chat.postEphemeral.json +++ b/methods/chat/chat.postEphemeral.json @@ -158,6 +158,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 2e75c4b0..81fb043a 100644 --- a/methods/chat/chat.postMessage.json +++ b/methods/chat/chat.postMessage.json @@ -208,6 +208,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 } ]