SlackObjectFormationError: options attribute must have between 2 and 5 items whereas API allows a single option #1218
Labels
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
Version: 3x
web-client
Milestone
Reproducible in:
The Slack SDK version
slack-sdk==3.16.1
Python runtime version
Python 3.10.3
OS info
ProductName: macOS
ProductVersion: 12.3.1
BuildVersion: 21E258
Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000
Steps to reproduce:
^ This will fail with
slack_sdk.errors.SlackObjectFormationError: options attribute must have between 2 and 5 item
It used to be that the API required a minimum of two option entries in the overflow menu, but for a number of years now it has permitted just a single one.
Expected result:
No error is thrown and the object is converted to a dict.
Block kit builder screenshot to confirm that the API allows a single option:
Actual result:
An error is thrown:
slack_sdk.errors.SlackObjectFormationError: options attribute must have between 2 and 5 item
The text was updated successfully, but these errors were encountered: