@rjsf/utils 5.4.0 → 5.5.0
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.d.ts +3 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -608,6 +608,8 @@ type ObjectFieldTemplateProps<T = any, S extends StrictRJSFSchema = RJSFSchema,
|
|
|
608
608
|
uiSchema?: UiSchema<T, S, F>;
|
|
609
609
|
/** An object containing the id for this object & ids for its properties */
|
|
610
610
|
idSchema: IdSchema<T>;
|
|
611
|
+
/** The optional validation errors in the form of an `ErrorSchema` */
|
|
612
|
+
errorSchema?: ErrorSchema<T>;
|
|
611
613
|
/** The form data for the object */
|
|
612
614
|
formData?: T;
|
|
613
615
|
/** The `formContext` object that was passed to Form */
|
|
@@ -859,7 +861,7 @@ interface ValidatorType<T = any, S extends StrictRJSFSchema = RJSFSchema, F exte
|
|
|
859
861
|
/** Runs the pure validation of the `schema` and `formData` without any of the RJSF functionality. Provided for use
|
|
860
862
|
* by the playground. Returns the `errors` from the validation
|
|
861
863
|
*
|
|
862
|
-
* @param schema - The schema against which to validate the form data
|
|
864
|
+
* @param schema - The schema against which to validate the form data
|
|
863
865
|
* @param formData - The form data to validate
|
|
864
866
|
*/
|
|
865
867
|
rawValidation<Result = any>(schema: S, formData?: T): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/utils.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"@types/jest-expect-message": "^1.1.0",
|
|
47
47
|
"@types/json-schema": "^7.0.9",
|
|
48
48
|
"@types/json-schema-merge-allof": "^0.6.1",
|
|
49
|
-
"@types/lodash": "^4.14.
|
|
49
|
+
"@types/lodash": "^4.14.192",
|
|
50
50
|
"@types/react": "^17.0.48",
|
|
51
51
|
"@types/react-is": "^17.0.3",
|
|
52
52
|
"@types/react-test-renderer": "^17.0.2",
|
|
53
53
|
"dts-cli": "^1.6.3",
|
|
54
|
-
"eslint": "^8.
|
|
54
|
+
"eslint": "^8.37.0",
|
|
55
55
|
"jest-expect-message": "^1.1.3",
|
|
56
56
|
"react": "^17.0.2",
|
|
57
57
|
"react-test-renderer": "^17.0.2",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"url": "git+https://github.com/rjsf-team/react-jsonschema-form.git"
|
|
76
76
|
},
|
|
77
77
|
"license": "Apache-2.0",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "531aabd709d19c25ff6bd901b9e8757ab09c9346"
|
|
79
79
|
}
|