Skip to content

Data validator is a library for checking the correctness (validation) of data, with which you can check types of data: Strings , Numbers, Objects of Map type

Notifications You must be signed in to change notification settings

kitdim/Data-Validator-Kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests and linter status:

Maintainability Java CI Test Coverage

Validator

Data validator is a library for checking the correctness (validation) of data, with which you can check types of data:

  1. Strings
  2. Numbers
  3. Objects of Map type

The project is based on the yup library.

Requirements

  1. JDK 20 or above
  2. Make or use gradle tasks
  3. Gradle 8.2 or above

Usage

  1. Download library from GitHub
  2. Connect the library to the project or use jshell

Commands

  1. make build or ./gradlew clean build, for build
  2. make install or ./gradlew clean build, for clean & install
  3. make run or ./gradlew --console plain jshell, for run in jshell

Example

StringSchema

asciicast

NumberSchema

asciicast

MapSchema

asciicast

MapSchema (hard mode)

asciicast

About

Data validator is a library for checking the correctness (validation) of data, with which you can check types of data: Strings , Numbers, Objects of Map type

Resources

Stars

Watchers

Forks

Packages

No packages published