@rilix/ajv-keywords
v0.1.1
Published
extra keywords for ajv
Readme
@rilix/ajv-keywords
This lid adds some keywords to ajv, mainly to facilitate our translations.
How to user:
import Ajv from 'ajv';
import rilixAjvKeywords from '@rilix/ajv-keywords';
const ajv = new Ajv();
rilixAjvKeywords(ajv);
ajv.validate({ email: true }, '[email protected]'); // true
ajv.validate({ email: true }, 'example'); // falseFor more usage examples please refer to the spec folder or open an issue with a question.
