@sjsf/ajv8-validator
v1.0.0
Published
The ajv-8 based validator for svelte-jsonschema-form
Downloads
971
Readme
@sjsf/ajv8-validator
The Ajv8 based validator implementation for svelte-jsonschema-form.
Installation
npm install @sjsf/ajv8-validator ajv@8
Usage
import Ajv from 'ajv';
import {
AjvValidator,
addFormComponents,
DEFAULT_AJV_CONFIG,
} from "@sjsf/ajv8-validator";
const validator = new AjvValidator(
addFormComponents(new Ajv(DEFAULT_AJV_CONFIG))
);
License
MIT