-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: abstract validation and add new resultMode for allWithoutResponse
This commit introduces data validation for both success and error responses using schemas and validators. It also refactors error handling to provide more context and flexibility. - Implemented `handleValidation` function to validate response data against schemas and validators. - Modified `createFetchClient` and `createFetchClientWithOptions` to include validation of success and error data. - Updated `resolveErrorResult` to provide more detailed error information. - Refactored dedupe strategy to improve readability and maintainability. - Added `omitKeys` and `pickKeys` utility functions for object manipulation. - Updated types and contexts to reflect the changes in error handling and validation. - Increased size limit in `package.json` to accommodate the new features.
- Loading branch information
1 parent
ee06427
commit da89812
Showing
9 changed files
with
120 additions
and
98 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
Oops, something went wrong.