@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 }, 'example@example.com'); // true
ajv.validate({ email: true }, 'example'); // false
For more usage examples please refer to the spec folder or open an issue with a question.