Skip to content

Commit f3e7fb7

Browse files
- improved docs
1 parent b86fa96 commit f3e7fb7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/docs/docs/usage/validation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ render(<Form schema={schema} validator={validator} />, document.getElementById('
688688

689689
### extenderFn
690690

691-
If you need to use an additional library, such as `ajv-errors` with our validators, you can do so by creating a custom validator and pass it via the `extenderFn` prop on the `options` parameter.
691+
If you need to use an additional library, such as `ajv-errors`, with our validators you can do so by creating a custom validator and pass it the `ajv` library "extender" via the `extenderFn` prop on the `options` parameter.
692692

693693
```tsx
694694
import { Form } from '@rjsf/core';
@@ -702,8 +702,6 @@ const schema: RJSFSchema = {
702702
};
703703

704704
const validator = customizeValidator({ extender: ajvErrors });
705-
// or
706-
// const validator = customizeValidator({ AjvClass: Ajv2020 });
707705

708706
render(<Form schema={schema} validator={validator} />, document.getElementById('app'));
709707
```

0 commit comments

Comments
 (0)