dandean/express-form — Issue #27: Custom validation and required fields
Author: JanVanRyswyck
Created: 2011-12-26 16:04:32+00:00
State: open

In the runStack function, there's the following line:

// If this field is not required and it doesn't have a value, ignore error.
if (!utils.hasValue(value) && !self.__required) return;

Isn't this up to the custom function to determine if the value is required or not and when it is, it has to check for the 'requiredness' itself? Thoughts?