File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed
Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1414 "react-hook-form" : " ^7.55.0" ,
1515 "@hookform/resolvers" : " ^2.0.0" ,
1616 "ajv" : " ^8.12.0" ,
17- "ajv-errors" : " ^3.0.0"
17+ "ajv-errors" : " ^3.0.0" ,
18+ "ajv-formats" : " ^2.1.1"
1819 }
1920}
Original file line number Diff line number Diff line change 11import { toNestErrors , validateFieldsNatively } from '@hookform/resolvers' ;
22import Ajv , { DefinedError } from 'ajv' ;
33import ajvErrors from 'ajv-errors' ;
4+ import addFormats from 'ajv-formats' ;
45import { FieldError , appendErrors } from 'react-hook-form' ;
56import { AjvError , Resolver } from './types' ;
67
@@ -93,6 +94,7 @@ export const ajvResolver: Resolver =
9394 ) ;
9495
9596 ajvErrors ( ajv ) ;
97+ addFormats ( ajv ) ;
9698
9799 const validate = ajv . compile (
98100 Object . assign (
Original file line number Diff line number Diff line change 2222 "@vitejs/plugin-react" : " ^4.3.4" ,
2323 "ajv" : " ^8.17.1" ,
2424 "ajv-errors" : " ^3.0.0" ,
25+ "ajv-formats" : " ^2.1.1" ,
2526 "arktype" : " 2.0.4" ,
2627 "check-export-map" : " ^1.3.1" ,
2728 "class-transformer" : " ^0.5.1" ,
484485
485486 "ajv-errors" : [
" [email protected] " ,
" " , {
"peerDependencies" : {
"ajv" :
" ^8.0.1" } },
" sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==" ],
486487
488+ "ajv-formats" : [
" [email protected] " ,
" " , {
"dependencies" : {
"ajv" :
" ^8.0.0" } },
" sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==" ],
489+
487490 "ansi-regex" : [
" [email protected] " ,
" " , {},
" sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" ],
488491
489492 "ansi-styles" : [
" [email protected] " ,
" " , {
"dependencies" : {
"color-convert" :
" ^1.9.0" } },
" sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==" ],
Original file line number Diff line number Diff line change 282282 "@vitejs/plugin-react" : " ^4.3.4" ,
283283 "ajv" : " ^8.17.1" ,
284284 "ajv-errors" : " ^3.0.0" ,
285+ "ajv-formats" : " ^2.1.1" ,
285286 "arktype" : " 2.0.4" ,
286287 "check-export-map" : " ^1.3.1" ,
287288 "class-transformer" : " ^0.5.1" ,
You can’t perform that action at this time.
0 commit comments