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

Block Object: Validate text min and max length #1273

Merged
merged 1 commit into from Mar 20, 2024

Conversation

Chagui-
Copy link
Contributor

@Chagui- Chagui- commented Mar 15, 2024

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:

  • Text field min size validation of 1
  • Text field max size validation of 3000
  • Tests for both cases

@parsley42 parsley42 closed this Mar 20, 2024
@parsley42 parsley42 reopened this Mar 20, 2024
Copy link
Member

@parsley42 parsley42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any issue.

@parsley42 parsley42 merged commit d2493fa into slack-go:master Mar 20, 2024
4 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.

None yet

2 participants