Skip to content

Tighten block validation: header text <=150 chars, section fields <=10 - #468

Merged
VictorHLi404 merged 1 commit into
masterfrom
vili/slack-block-validation-guards
Jul 30, 2026
Merged

Tighten block validation: header text <=150 chars, section fields <=10#468
VictorHLi404 merged 1 commit into
masterfrom
vili/slack-block-validation-guards

Conversation

@VictorHLi404

Copy link
Copy Markdown
Contributor

Slack's Block Kit enforces these limits at the API level; enforcing them client-side gives callers an earlier, clearer error instead of a rejected API response. Small clean-up work to be done after more implementations.

Changes:

Header block enforces a char limit of 150, not 3000
Section block enforces a limit of fields to 10

Slack's Block Kit enforces these limits at the API level; enforcing them
client-side gives callers an earlier, clearer error instead of a
rejected API response.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@VictorHLi404
VictorHLi404 merged commit 9839d7c into master Jul 30, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants