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
The name `When` was ambiguous and didn't clearly convey its purpose
as a conditional validator. The new name `LogicCond` clearly indicates
this is a logical conditional operation (if-then-else) where validation
follows different paths based on whether a condition passes or fails.
This rename is part of a broader effort to improve the naming of
composite rules in version 3.0, making them more intuitive and
reducing potential confusion when implementing validation logic.
A ternary validator that accepts three parameters.
6
+
A conditional validator that applies logic based on the validation results.
7
7
8
-
When the `$if` validates, returns validation for `$then`.
9
-
When the `$if` doesn't validate, returns validation for `$else`, if defined.
8
+
If the `$if` validator passes, it applies the `$then` validator. If the `$if` validator fails, it applies the `$else` validator (if provided); otherwise, validation fails.
0 commit comments