We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: