When set some rules tend to fail validation even when required validator is not present
I think the default behavior of all validators is to pass if input is empty and only validate if data is present and empty fields validation should be dealt with the required validator (if present)
<input name="link" class="form-control" data-rule="url">
The example above will fail with wrong url message, but this is not the desired effect because it is not required
When set some rules tend to fail validation even when
required
validator is not present I think the default behavior of all validators is to pass if input is empty and only validate if data is present and empty fields validation should be dealt with therequired
validator (if present)<input name="link" class="form-control" data-rule="url">
The example above will fail with wrong url message, but this is not the desired effect because it is not required