-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
Decimal values not allowed when entering integer minimum and maximum for 'number' types #157
Comments
A possible quick-fix that I can think of is to add something like this to the JS: |
I can not reproduce this. I tried the following schema and I can add a decimal value without problems. {
"type": "object",
"properties": {
"value": {
"type": "number",
"minimum": 1,
"maximum": 10
}
}
} |
How strange. What browser were you using? After getting rendered into html, I got an input element with min and max values and a number type. When trying to submit a decimal value between the limits it did not work. I am using Firefox. |
I'm also using Firefox (119). Perhaps you could share reproducible code in a sample github repo? |
A possible solution could be to add a way to add the step html attribute into the form inputs, perhaps by specifying decimalPlaces for 'number' type fields.
The text was updated successfully, but these errors were encountered: