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
That's normal behavior, all possibilities will be attempted until a valid one is found, if none, there is no way to distinguish which one is the most likely, so this is the only rational error to provide.
@Marsup at least the second one has custom handler and it could have priority. Moreover I got the correct result by wrapping "items" to alternatives(). Why it's not a problem for alternatives() to distinguish it?
Support plan
Context
What are you trying to achieve or the steps to reproduce?
Schema:
Data To Validate:
What was the result you got?
Validation Error: "test" does not match any of the allowed types
What result did you expect?
Validation Error: Test error message
The text was updated successfully, but these errors were encountered: