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
feat(validators): introduce in() method as an alias for oneOf()
Added a new `in()` method to StringValidator, IntValidator, FloatValidator, and BoolValidator for clearer allowed-value validation. The `oneOf()` method is now deprecated in favor of `in()`, which enhances the API's intuitiveness. Updated documentation and tests to reflect these changes, ensuring backward compatibility with the retained `oneOf()` alias.
**Available on:**`StringValidator`, `IntValidator`, `FloatValidator`, `BoolValidator` only
669
669
670
670
Restricts the value to one of the specified allowed values. This method is implemented as a transformation and respects the fluent API execution order.
0 commit comments