Commit 4f39347
feat: Field validation from form schema (#925)
* feat: add ability to pass errors to specific fields from Zod
* chore: code cleanup
* chore: fix various issues
* chore: more TSC and lib fixes
* ci: apply automated fixes
* feat: add Yup support to schema valdiation
* chore: rename contexts from code review
* ci: apply automated fixes
* feat: support form validaton in Valibot
* chore: fix tests for createServerValidate
* docs: add docs for validation logic
* feat: apply transformError to all fields
* fix: set transformed errors on nested fields
* feat: spread zod errors into arrays
* feat: spread yup errors into fields, nested and arrays
* feat: spread valibot errors into fields, nested and arrays
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Leonardo Montini <lion.48m@gmail.com>1 parent 22ece11 commit 4f39347
File tree
22 files changed
+942
-151
lines changed- docs/framework
- angular/guides
- react/guides
- solid/guides
- vue/guides
- examples/react/field-errors-from-form-validators/src
- packages
- form-core/src
- react-form
- src
- nextjs
- start
- tests
- solid-form/tests
- valibot-form-adapter
- src
- tests
- yup-form-adapter
- src
- tests
- zod-form-adapter
- src
- tests
22 files changed
+942
-151
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
472 | 504 | | |
473 | 505 | | |
474 | 506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
480 | 516 | | |
481 | 517 | | |
482 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
379 | 417 | | |
380 | 418 | | |
381 | 419 | | |
| |||
0 commit comments