validator/text_validator library
Classes
- TextContainsBlacklistedIssue
- Text contains blacklisted words.
- TextEmptyIssue
- Text input is empty.
- TextInvalidCharactersIssue
- Text includes disallowed characters.
- TextInvalidPatternIssue
- Text does not match the required pattern.
- TextOnlyWhitespaceIssue
- Text contains only whitespace.
- TextTooLongIssue
- Text is longer than allowed.
- TextTooShortIssue
- Text is shorter than allowed.
- TextValidationConfig
- Configuration for generic text validation.
- TextValidationIssue
- Base type for text validation failures.
- TextValidator
- Canonical validator for generic text inputs.
Functions
-
resolveTextValidationIssue(
TextValidationIssue issue) → String - Default English messages for text validation issues.