Skip to content

Commit 830b517

Browse files
authored
Fix #1218 - Reduce minimum number of overflow options (#1219)
1 parent 6d410da commit 830b517

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

slack_sdk/models/blocks/block_elements.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ def __init__(
14901490

14911491
class OverflowMenuElement(InteractiveElement):
14921492
type = "overflow"
1493-
options_min_length = 2
1493+
options_min_length = 1
14941494
options_max_length = 5
14951495

14961496
@property
@@ -1501,7 +1501,7 @@ def __init__(
15011501
self,
15021502
*,
15031503
action_id: Optional[str] = None,
1504-
options: Sequence[Union[Option]],
1504+
options: Sequence[Option],
15051505
confirm: Optional[Union[dict, ConfirmObject]] = None,
15061506
**others: dict,
15071507
):
@@ -1524,7 +1524,7 @@ def __init__(
15241524
Should be unique among all other action_ids in the containing block.
15251525
Maximum length for this field is 255 characters.
15261526
options (required): An array of option objects to display in the menu.
1527-
Maximum number of options is 5, minimum is 2.
1527+
Maximum number of options is 5, minimum is 1.
15281528
confirm: A confirm object that defines an optional confirmation dialog that appears
15291529
after a menu item is selected.
15301530
"""

0 commit comments

Comments
 (0)