Skip to content

Number with ui:widget updown type uses "minimum" for both "minimum" and "multipleOf" #4732

@como-pearl

Description

@como-pearl

Prerequisites

What theme are you using?

antd

Version

5.19.4

Current Behavior

The "minimum" value, in absence of a "multipleOf" value, appears to be used as the "multipleOf" value as well.

Screen.Recording.2025-08-25.at.2.04.40.PM.mov

Expected Behavior

The "minimum" value should not be used as the "multipleOf" value as well.

Steps To Reproduce

  1. Go here: react-jsonschema-form playground
  2. Input this into JSONSchema:
{
  "title": "A registration form",
  "type": "object",
  "properties": {
    "age": {
      "type": "number",
      "title": "Age",
      "minimum": 0
    }
  }
}
  1. input this into UiSchema:
{
  "age": {
    "ui:widget": "updown"
  }
}
  1. Insert any integer multiple (even float versions) into the form. Examples: 1, 1.0, 1.000. No validation errors
  2. Insert any float value into the form. Examples: 12.01, 12.1. Validation error. Note that it appears the minimum value also by default becomes the multipleOf value. Note that there are no raw AJV errors encountered
  3. Remove "ui:widget": "updown" from the UiSchema section. Note that on submit, field validation passes.

Environment

- OS:
- Node:
- npm:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions