return this.test('test-time-format', errorMessage, function (value) {
const { path, createError } = this;
return (
+ !value ||
parseTime(value) ||
createError({ path, message: errorMessage || 'validation.error.time' })
);
},
string: {
time: 'validation.error.time',
+ url: 'validation.error.url',
},
});