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