import Ajv from 'ajv' ; import addFormats from 'ajv-formats' ; import { Options } from 'ajv' ; export const createAjv = ( options ? ) => { const ajv = new Ajv ( { allErrors : true , verbose : true , strict : false , ... options } ) ; addFormats ( ajv ) ; return ajv ; } ;