Commit d586dc1
committed
fix(validators): improve campaignRequest schema validation error message
- Add strict mode to prevent undefined coercion to empty object
- Add custom test to check for undefined/null/empty object before field validation
- Fix error message to show 'campaignRequest is required' instead of 'sign is a required field' when campaignRequest is undefined1 parent f90e143 commit d586dc1
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
0 commit comments