@rjsf/validator-ajv8 6.1.2 → 6.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/validator-ajv8.esm.js +1 -1
- package/dist/validator-ajv8.esm.js.map +2 -2
- package/dist/validator-ajv8.umd.js +1 -1
- package/lib/processRawValidationErrors.js +1 -1
- package/lib/processRawValidationErrors.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/processRawValidationErrors.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/validator-ajv8",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
"lodash-es": "^4.17.21"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@rjsf/utils": "^6.x"
|
|
86
|
+
"@rjsf/utils": "^6.2.x"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@rjsf/utils": "^6.
|
|
89
|
+
"@rjsf/utils": "^6.2.0",
|
|
90
90
|
"@types/json-schema": "^7.0.15",
|
|
91
91
|
"ajv-i18n": "^4.2.0",
|
|
92
92
|
"eslint": "^8.57.1"
|
|
@@ -185,7 +185,7 @@ export default function processRawValidationErrors<
|
|
|
185
185
|
// Include form data with undefined values, which is required for custom validation.
|
|
186
186
|
const newFormData = getDefaultFormState<T, S, F>(validator, schema, formData, schema, true) as T;
|
|
187
187
|
|
|
188
|
-
const errorHandler = customValidate(newFormData, createErrorHandler<T>(newFormData), uiSchema);
|
|
188
|
+
const errorHandler = customValidate(newFormData, createErrorHandler<T>(newFormData), uiSchema, errorSchema);
|
|
189
189
|
const userErrorSchema = unwrapErrorHandler<T>(errorHandler);
|
|
190
190
|
return validationDataMerge<T>({ errors, errorSchema }, userErrorSchema);
|
|
191
191
|
}
|