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
Hi, so I'm also not that deep into the code as I only maintain it now, but I played a little with your example it seems yup.shape makes problems, since I can't get the schema to transform when it's defined.
But the main problem is that it seems the new nested schema parts from yup.when won't get appended to the schema correctly.
So for now my guess is yup.when doesn't work correctly at this time.
Unfortunately we do not use the lib that much anymore so I can't say when I get around to investigate this problem.
Feel free to solve it yourself and make a PR if you have the time.
I am trying something like this
`[
['yup.object'],
[
'yup.shape',
{
email: [
['yup.string'],
['yup.nullable'],
[
'yup.required',
'Bitte geben Sie eine gültige E-Mail-Adresse ein (maximal 320 Zeichen).',
],
],
The text was updated successfully, but these errors were encountered: