-
Notifications
You must be signed in to change notification settings - Fork 419
Closed
Description
Describe the bug
I want to render an integer enum control as a radio via the following schemas:
schema.json
"amount": {
"type": "integer",
"enum": [50, 100, 250, 500]
}
uischema.json
{
"type": "Control",
"scope": "#/properties/amount",
"options": {
"format": "radio"
}
}
The issue is now that apparently the values of the radio inputs are converted/considered to be string instead of integers. Because of that i cannot select any of the values because the validator is righfully complaining that the selected values are not valid.
Expected behavior
The radio group values should be selectable
Steps to reproduce the issue
- Provide schema as outlined above
- Try to select one of the options
Screenshots
In which browser are you experiencing the issue?
Google Chrome Version 107.0.5304.110 (Official Build) (64-bit)
Which Version of JSON Forms are you using?
v3.0.0
Framework
Other (please specify in the Additional context field)
RendererSet
Vanilla
Additional context
I am using Preact
