Closed ferrao closed 4 years ago
Not only with dates, but with any other type of data
`const rules = { data : 'alpha' } const validatorTest = Validator.make({}, rules)
if(validatorTest.fails()){ console.log(validatorTest.getErrors()); }`
The output produced is:
{ data: [ 'The data may only contain letters.' ] }
@Robinz250 you are free to open a PR to solve the issue.
The following code should validate and not print any errors:
But the following ouput is produced:
{ date: [ 'The date is not a valid date.' ] }