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
This could make rendering error messages difficult. Say you want something like "Age must be greater than or equal to 21". If you create the validation by combining equal-to and greater-than then only the error for greater than will be shown (if implemented as seen here).
Possibly by having errors return in a tree structure that mimics the structure of the validations we could have an error that looks like {:type :alternate :children [{...} {...}]} and then we'll have all the information need to render an error like "Must be [greater than 10] or [equal to 10]". Which is still somewhat awkwardly worded. Perhaps having a :message field on Alternate would help as well.
Will allow a value if either valiator passes. As created by @dpom here.
The text was updated successfully, but these errors were encountered: