-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(qwikcity/actions): dotnotation field-errors (#6568)
* feat(qwikcity/actions): dotnotation field-errors On very complex nested types, you loose the location or the field the error belongs to. Closes #5463 BREAKING CHANGE: The fieldErrors type on the action changed from Record<string,string[]> (simplified) to Record<string,string> where the key is now dot notation closes #5463 * fix types and adding test * make the type partial * introduce arrays to the type and flattenErrors * run api.update * chore: run api.update * chore: run api.update * adding array to the test --------- Co-authored-by: Tobias Zimmermann <ich@tzdesign.de> Co-authored-by: gioboa <giorgiob.boa@gmail.com> Co-authored-by: PatrickJS <github@patrickjs.com>
- Loading branch information
1 parent
90566f0
commit e05e354
Showing
13 changed files
with
395 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.