@rjsf/validator-ajv8
Advanced tools
Comparing version 5.15.0 to 5.15.1
@@ -1,3 +0,4 @@ | ||
import { FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType } from '@rjsf/utils'; | ||
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; | ||
import { CustomValidatorOptionsType, Localizer } from './types'; | ||
import AJV8Validator from './validator'; | ||
/** Creates and returns a customized implementation of the `ValidatorType` with the given customization `options` if | ||
@@ -11,2 +12,2 @@ * provided. If a `localizer` is provided, it is used to translate the messages generated by the underlying AJV | ||
*/ | ||
export default function customizeValidator<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(options?: CustomValidatorOptionsType, localizer?: Localizer): ValidatorType<T, S, F>; | ||
export default function customizeValidator<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(options?: CustomValidatorOptionsType, localizer?: Localizer): AJV8Validator<T, S, F>; |
@@ -5,3 +5,3 @@ import customizeValidator from './customizeValidator'; | ||
export * from './types'; | ||
declare const _default: import("@rjsf/utils").ValidatorType<any, import("@rjsf/utils").RJSFSchema, any>; | ||
declare const _default: import("./validator").default<any, import("@rjsf/utils").RJSFSchema, any>; | ||
export default _default; |
@@ -0,1 +1,2 @@ | ||
import Ajv from 'ajv'; | ||
import { CustomValidator, ErrorSchema, ErrorTransformer, FormContextType, RJSFSchema, StrictRJSFSchema, UiSchema, ValidationData, ValidatorType } from '@rjsf/utils'; | ||
@@ -11,3 +12,3 @@ import { CustomValidatorOptionsType, Localizer } from './types'; | ||
*/ | ||
private ajv; | ||
ajv: Ajv; | ||
/** The Localizer function to use for localizing Ajv errors | ||
@@ -14,0 +15,0 @@ * |
{ | ||
"name": "@rjsf/validator-ajv8", | ||
"version": "5.15.0", | ||
"version": "5.15.1", | ||
"main": "dist/index.js", | ||
@@ -51,3 +51,3 @@ "module": "lib/index.js", | ||
"@babel/preset-typescript": "^7.22.15", | ||
"@rjsf/utils": "^5.15.0", | ||
"@rjsf/utils": "^5.15.1", | ||
"@types/jest": "^29.5.7", | ||
@@ -86,3 +86,3 @@ "@types/json-schema": "^7.0.12", | ||
"license": "Apache-2.0", | ||
"gitHead": "12781f3527ff494668913637e5aabcf27db952b1" | ||
"gitHead": "61dc9b87f52de3402dd369d11a7eb931d666bb6e" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType } from '@rjsf/utils'; | ||
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; | ||
@@ -18,4 +18,4 @@ import { CustomValidatorOptionsType, Localizer } from './types'; | ||
F extends FormContextType = any | ||
>(options: CustomValidatorOptionsType = {}, localizer?: Localizer): ValidatorType<T, S, F> { | ||
>(options: CustomValidatorOptionsType = {}, localizer?: Localizer) { | ||
return new AJV8Validator<T, S, F>(options, localizer); | ||
} |
@@ -32,3 +32,3 @@ import Ajv, { ErrorObject, ValidateFunction } from 'ajv'; | ||
*/ | ||
private ajv: Ajv; | ||
ajv: Ajv; | ||
@@ -35,0 +35,0 @@ /** The Localizer function to use for localizing Ajv errors |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2623
313419