@rjsf/validator-ajv6
Version:
The ajv-6 based validator for @rjsf/core
11 lines (10 loc) • 676 B
TypeScript
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
import { CustomValidatorOptionsType } from './types.js';
import AJV6Validator from './validator.js';
/** Creates and returns a customized implementation of the `ValidatorType` with the given customization `options` if
* provided.
*
* @param [options={}] - The `CustomValidatorOptionsType` options that are used to create the `ValidatorType` instance
* @deprecated in favor of the `@rjsf/validator-ajv8
*/
export default function customizeValidator<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(options?: CustomValidatorOptionsType): AJV6Validator<T, S, F>;