Skip to content

Enable users to pass their own AJV instance #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ You can customize `useAJVForm` using the following options:
| `userDefinedMessages` | `Record<string, AJVMessageFunction>` | Custom error messages for validation errors. |
| `shouldDebounceAndValidate` | `boolean` | If `true`, enables debouncing for field validation. |
| `debounceTime` | `number` | Time in milliseconds for debouncing validation. Ignored if `shouldDebounceAndValidate` is set to false. |
| `ajv` | `Ajv` | Your own AJV instance that might have custom keywords, errors, etc. |

## Usage in Practice

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@programmer_network/use-ajv-form",
"version": "1.0.19",
"version": "1.0.20",
"description": "Custom React Hook that integrates with Ajv JSON Schema Validator",
"main": "dist/use-ajv-form.es.js",
"author": "Aleksandar Grbic",
Expand Down
Loading
Loading