Skip to content

Commit c8ab3c6

Browse files
committed
Enable users to pass their own AJV instance
1 parent 0a68ce1 commit c8ab3c6

File tree

5 files changed

+2915
-2363
lines changed

5 files changed

+2915
-2363
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ You can customize `useAJVForm` using the following options:
213213
| `userDefinedMessages` | `Record<string, AJVMessageFunction>` | Custom error messages for validation errors. |
214214
| `shouldDebounceAndValidate` | `boolean` | If `true`, enables debouncing for field validation. |
215215
| `debounceTime` | `number` | Time in milliseconds for debouncing validation. Ignored if `shouldDebounceAndValidate` is set to false. |
216+
| `ajv` | `Ajv` | Your own AJV instance that might have custom keywords, errors, etc. |
216217
217218
## Usage in Practice
218219

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programmer_network/use-ajv-form",
3-
"version": "1.0.19",
3+
"version": "1.0.20",
44
"description": "Custom React Hook that integrates with Ajv JSON Schema Validator",
55
"main": "dist/use-ajv-form.es.js",
66
"author": "Aleksandar Grbic",

0 commit comments

Comments
 (0)