-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: validate contained when validator disable
- Original, always validate contained property using mongoose scheme - When we have validator, it is unnecessary to validate contained property because validator will do that very well - So, move process of `validate contained` to else condition that mean validator being disable - Add `validateContainedList` to validate contained "Array" - Refactor `validateContained` to function
- Loading branch information
1 parent
519e1d6
commit 3cd87d5
Showing
3 changed files
with
43 additions
and
27 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