mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
With 'optional' rule validation, values does not need to be included in data array. However, if they are, they must pass validation. Before this patch, if you pass data with empty ( '' ) value, then it is ignored if "required" was not added. With this version, this is now fixed. Text case available here: http://pastebin.com/N2eQjJys