You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[resultDefault]{ error:
{[ValidationError: child"emails"failsbecause["emails"atposition0failsbecause[child"value"failsbecause["value"mustbeavalidemail]]]]isJoi: true,name: 'ValidationError',details:
[{message: '"value" must be a valid email',path: 'emails.0.value',type: 'string.email',context: [Object]}],_object: {emails: [[Object],[Object]]},annotate: [Function]},value:
{emails:
[{value: 'hagrid@ potterworld'},{value: 'hagrid@harrypotterworld.com'}]}}[resultStripUnknown]{error: null,value: {emails: [{value: 'hagrid@harrypotterworld.com'}]}}
What did you expect ?
I expect both results to be an error. Considering I'm specifically testing the value inside an array I was expecting the behavior to be an error, instead the value was removed. It may very well be intentional, I was just confused by the behavior.
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Context
What are you trying to achieve or the steps to reproduce ?
I'm expecting an error when using
{ stripUnknown: true }
Which result you had ?
What did you expect ?
I expect both results to be an error. Considering I'm specifically testing the value inside an array I was expecting the behavior to be an error, instead the value was removed. It may very well be intentional, I was just confused by the behavior.
The text was updated successfully, but these errors were encountered: