Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion ajv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"react-hook-form": "^7.55.0",
"@hookform/resolvers": "^2.0.0",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0"
"ajv-errors": "^3.0.0",
"ajv-formats": "^2.1.1"
}
}
2 changes: 2 additions & 0 deletions ajv/src/ajv.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { toNestErrors, validateFieldsNatively } from '@hookform/resolvers';
import Ajv, { DefinedError } from 'ajv';
import ajvErrors from 'ajv-errors';
import addFormats from 'ajv-formats';
import { FieldError, appendErrors } from 'react-hook-form';
import { AjvError, Resolver } from './types';

Expand Down Expand Up @@ -93,6 +94,7 @@ export const ajvResolver: Resolver =
);

ajvErrors(ajv);
addFormats(ajv);

const validate = ajv.compile(
Object.assign(
Expand Down
3 changes: 3 additions & 0 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@vitejs/plugin-react": "^4.3.4",
"ajv": "^8.17.1",
"ajv-errors": "^3.0.0",
"ajv-formats": "^2.1.1",
"arktype": "2.0.4",
"check-export-map": "^1.3.1",
"class-transformer": "^0.5.1",
Expand Down Expand Up @@ -484,6 +485,8 @@

"ajv-errors": ["[email protected]", "", { "peerDependencies": { "ajv": "^8.0.1" } }, "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ=="],

"ajv-formats": ["[email protected]", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="],

"ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],

"ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^1.9.0" } }, "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA=="],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
"@vitejs/plugin-react": "^4.3.4",
"ajv": "^8.17.1",
"ajv-errors": "^3.0.0",
"ajv-formats": "^2.1.1",
"arktype": "2.0.4",
"check-export-map": "^1.3.1",
"class-transformer": "^0.5.1",
Expand Down
Loading