Open tcpalmer opened 2 years ago
2.0.2
NumberType doesn't accept values with a leading or trailing decimal point as valid. For example '.1' and '1.' are not considered valid.
Values with leading and trailing decimal points are valid numbers and should be accepted.
const model = Schema.Model({ imageScale: NumberType('must be a number'), });
See screenshot for actual result.
What version of schema-typed are you using?
2.0.2
Describe the Bug
NumberType doesn't accept values with a leading or trailing decimal point as valid. For example '.1' and '1.' are not considered valid.
Expected Behavior
Values with leading and trailing decimal points are valid numbers and should be accepted.
To Reproduce
const model = Schema.Model({ imageScale: NumberType('must be a number'), });
See screenshot for actual result.