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
CustomValidator is a function validator which is converted to type CallableValidator when passed as Scheme(CustomValidator).. If you need to validate for this kind of cases, you can directly use CallableValidator with fail_flag set to custom indicator value.
Now, the validation will fail if and only if CustomValidator function returns value failure. False values like False, empty iterables etc. will be validated without error.
What if we want to validate the value False (and other values which evaluate to False, like "" [] and 0)?
As in your example :
The text was updated successfully, but these errors were encountered: