https://github.com/paveldeuce/data-validator
JS schema builder for value validation
https://github.com/paveldeuce/data-validator
eslint jest library makefile object-oriented-programming oop schema schema-builder validator validators
Last synced: 4 months ago
JSON representation
JS schema builder for value validation
- Host: GitHub
- URL: https://github.com/paveldeuce/data-validator
- Owner: PavelDeuce
- Created: 2021-02-18T11:54:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-15T19:50:57.000Z (almost 3 years ago)
- Last Synced: 2025-01-04T12:18:07.914Z (5 months ago)
- Topics: eslint, jest, library, makefile, object-oriented-programming, oop, schema, schema-builder, validator, validators
- Language: JavaScript
- Homepage:
- Size: 204 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# data-validator
[](https://codeclimate.com/github/PavelDeuce/js-oop-project-lvl1/maintainability)
[](https://github.com/PavelDeuce/js-oop-project-lvl1/actions)
[](https://github.com/PavelDeuce/js-oop-project-lvl1/actions/workflows/nodejs.yml)
[](https://codeclimate.com/github/PavelDeuce/js-oop-project-lvl1/test_coverage)JS schema builder for value validation
## Example
```javascript
const validator = new Validator();
const schema = validator.number();
schema.isValid(null)) // true
schema.required();
schema.isValid(null)) // false
```