There doesn't seem to be any documentation about how to use the sometimes rule. I've also tried to look at the code but can't really work it out. In laravel you are supposed to give a callback but not sure if that's how its implemented here
'something' rule return true for any value, meaning field under validation will be always valid.
Also, it is not documented in official docs, so I may suppose that this is reserved for future.
There doesn't seem to be any documentation about how to use the sometimes rule. I've also tried to look at the code but can't really work it out. In laravel you are supposed to give a callback but not sure if that's how its implemented here
tried with validatorjs v3.14.2