Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

75 chars limitation on Text Fields. #53

Closed
kigsmtua opened this issue Nov 21, 2023 · 5 comments
Closed

75 chars limitation on Text Fields. #53

kigsmtua opened this issue Nov 21, 2023 · 5 comments

Comments

@kigsmtua
Copy link
Contributor

According to the docs here, https://api.slack.com/reference/block-kit/composition-objects#text looks like this field has a limitation of 3000 however this implementation has capped this at 75. Is there a reason I might have missed

I wouldn't mind pushing a quick fix for this

@nicklambourne
Copy link
Owner

Hey @kigsmtua, probably some legacy field validation based on a past state of their API. Happy to push through a fix, but I noticed you'd closed this as completed already?

@kigsmtua
Copy link
Contributor Author

@nicklambourne I believe I closed this by mistake

@nicklambourne
Copy link
Owner

Where did you see the 75 char limit in the codebase? At the time the issue was opened the Text object itself had no length limit but I've subsequently added validation checks for a 3000 char max.

@kigsmtua
Copy link
Contributor Author

https://github.com/nicklambourne/slackblocks/blob/master/slackblocks/objects.py#L205-L207 this actually passed in the option object as a 75 char limit, since the description is a text, it should allow upto the max I believe

@nicklambourne
Copy link
Owner

https://github.com/nicklambourne/slackblocks/blob/master/slackblocks/objects.py#L205-L207 this actually passed in the option object as a 75 char limit, since the description is a text, it should allow upto the max I believe

The documentation on the Option object from the Slack Blocks API reference lists the limit explicitly:

Maximum length for the text within this field is 75 characters.

So I'm still a bit confused as to what you mean.

Source: https://api.slack.com/reference/block-kit/composition-objects#:~:text=overflow%20menu.-,Maximum%20length%20for%20the,within%20this%20field%20is%2075%20characters.,-No

@kigsmtua kigsmtua closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants