@best-shot/validator
v0.6.0
Published
Config validator of 'best-shot'
Maintainers
Readme
@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);
});