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
I have following code. I exctracted only needed code for it. My model has name and array of simple fields. I just want to check if this array is not empty and raise validation error.
This is the example. Validation error for fields property is not working. Code is in Typescript. I expecting when I remove last field then I will have error message but there isn't any...
I also checked when such value with empty array I check using validate method on yup schema then it raises an error as expected. Because of that I think something is broken in React Formal.
What is really strange when min(2, 'Must have at least two fields') validation is applied to the fields then it works. Really strange behavior.
I have following code. I exctracted only needed code for it. My model has name and array of simple fields. I just want to check if this array is not empty and raise validation error.
This is the example. Validation error for
fields
property is not working. Code is in Typescript. I expecting when I remove last field then I will have error message but there isn't any...I also checked when such value with empty array I check using validate method on yup schema then it raises an error as expected. Because of that I think something is broken in React Formal.
What is really strange when min(2, 'Must have at least two fields') validation is applied to the
fields
then it works. Really strange behavior.The text was updated successfully, but these errors were encountered: