Data validator is a library that can be used to check the correctness of any data.
- required() – any non-empty string
- minLength(int number) – string is equal to or longer than the number
- contains(String substring) – string contains a specific substring
- required() – any number including zero
- positive() – positive number
- range(int number1, int number2) – the range in which the numbers must fall, including the bounds
- required() – data type Map is required
- sizeof(int number) – the number of key-value pairs in the Map object must be equal to the specified number
- Validate the data inside Map