Integer radio group not validating correctly

I want to show a integer enum schema as a radio group. I have the following configuration. The problem is: the field is being validated as a integer (which is completely fine) but the value is being set as a string. That is why i cannot select any of the options because the a validation complaints that the value needs to be an integer

schema.json

"amount": {
  "type": "integer",
  "enum": [50, 100, 250, 500]
}

uischema.json

{
  "type": "Control",
  "scope": "#/properties/amount",
  "options": {
    "format": "radio"
  }
}

image
image

Hi @robinsae,

This is definitely a bug, the radio renderer should not transform the value into a string. Can you open a bug against the JSON Forms code base?

@sdirix thanks for your fast reply. I submitted a github issue (Vanilla react renderer: integer enum radio group values are converted to string · Issue #2045 · eclipsesource/jsonforms · GitHub) closing this ticket then.

I would try to provide a patch myself but i am having a hard time getting the package to run on my local system…

1 Like

What environment are you developing in? Did you try our Docker based dev environment?