Skip to content

Commit 619765f

Browse files
committed
fix: docs updated
1 parent 7954a9b commit 619765f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/validations/custom-validation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010

1111
```jsx
1212
<Form
13-
schema={schema}
14-
uiSchema={uiSchema}
15-
formData={formData}
13+
schema={givenSchema}
14+
uiSchema={givenSchema}
15+
formData={givenFormData}
1616
onCancel={onCancel}
1717
onSubmit={onSubmit}
1818
onUpload={onUpload}
1919
onChange={onFormChanged}
2020
validations={{
21-
confirmPassword: (givenSchema, givenUISchema, value) => value !== formData.pass1 && ({
22-
message: givenUISchema['ui:validations'].confirmPassword.message,
21+
confirmPassword: ({ schema, validations, formData, value }) => value !== formData.pass1 && ({
22+
message: validations.confirmPassword.message,
2323
inline: true,
24-
}),
24+
}),
2525
}}
2626
/>
2727
```

0 commit comments

Comments
 (0)