Closed jeffutter closed 4 years ago
Before this patch if you cast an empty string to an integer it would not error on the field. (even with allowEmpty: false) . I'm not sure what the expected error message should be, but I suspect that it shouldn't be considered valid.
allowEmpty: false
Agree, in most cases I would think an empty string should not be treated as an integer (0). But maybe this could be passed in as an option?
Any hope of this being merged?
Before this patch if you cast an empty string to an integer it would not error on the field. (even with
allowEmpty: false
) . I'm not sure what the expected error message should be, but I suspect that it shouldn't be considered valid.