slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.66k stars 1.14k forks source link

Block Object: Validate text min and max length #1273

Closed Chagui- closed 6 months ago

Chagui- commented 6 months ago

The validate block wasn't validating the text size. This was generating a confusing invalid_block error when we were sending a message that was longer than the allowed max value, even though we were calling validate() before sending.

Adds: