Include
Include(haystack: Union[str, List[Any], Tuple[Any]], identical: bool = True)
Validates if an input contains a specific haystack.
For strings:
For lists:
A second parameter may be passed for comparison case-sensitive strings (default True).
Message template for this validator includes {haystack}
.
Categorization
- Arrays
- Comparisons
- Strings
Changelog
Version | Description |
---|---|
1.0.0 | Created |
See also: