Skip to content

ilshatshamsetdinov/java-project-78

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability Test Coverage Java CI

Data Validator

Description

Data validator is a library that can be used to check the correctness of any data.

String validation:

  • 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

image

Numbers validation

  • required() – any number including zero
  • positive() – positive number
  • range(int number1, int number2) – the range in which the numbers must fall, including the bounds

image

Maps validation

  • 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

image

Nested Validation

  • Validate the data inside Map

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published