0.4.4 • Published 3 months ago
@best-shot/validator v0.4.4
@best-shot/validator
Config validator of 'best-shot'.
Schema
- JSON Schema draft-07
- formats:
regex
- keywords:
instanceof/transform/uniqueItemProperties
Installation
npm install @best-shot/validator --save-dev
Usage
import { validate } from '@best-shot/validator';
validate({ data, schema })
.then((result) => {
console.log(result);
})
.catch((error) => {
console.warn(error.detail);
});