rjsf-team / react-jsonschema-form

A React component for building Web forms from JSON Schema.

Home Page:https://rjsf-team.github.io/react-jsonschema-form/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oneOf is not supported

arrkaye opened this issue · comments

I have a schema that accepts either an array of object or a list from an enum.

I'd like it to render as two radio buttons, "Can Complete" and "Can't Complete". Depending on which is selected, I'd like to hide/show different subforms to allow the user to enter the data. Is this possible ?

My draft4 JSON schema achieves this by using "oneOf", but this isn't supported in this rjsf.

Duplicate of #52.

An implementation attempt for oneOf has started in #302 but progress hasn't been made since a long time unfortunately. You may want to take over this effort.