0.5.0 • Published 10 months ago
@best-shot/validator v0.5.0
@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-devUsage
import { validate } from '@best-shot/validator';
validate({ data, schema })
.then((result) => {
console.log(result);
})
.catch((error) => {
console.warn(error.detail);
});