-
I am trying to validate a form where either
Yet the validator allows both values to be false at the same time. The values coming from the form are:
If I am not mistaken Adonis converts these to booleans automatically. The rest of the validation happens as expected so the validator is hooked up correctly. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I just realized it's not doing what I want to do, it just checks whether a value is present. But I still don't know how to do what I want. I guess I am looking for a |
Beta Was this translation helpful? Give feedback.
-
Solved it with a custom validator:
|
Beta Was this translation helpful? Give feedback.
Solved it with a custom validator: