-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Use uiSchema to customize oneOf/anyOf with different types #1141
Comments
@epicfaace If you input a value you'll notice that it is coerced into a number or string depending on the option you selected. By default this module uses a "text" input to render |
That sounds like something worth fixing |
I have encountered nearly the same issue in that I would like to use oneOf with an object and a basic type. I also want to use this oneOf inside an array. The oneOf works differently inside and outside of an array. Here is the oneOf schema by itself:
With a playground link. This works fairly well although it is a little glitchy. And the same schema within an array:
With a playground link This displays completely different behavior from the previous schema and does not allow input for the second option. |
@Rasstrelnikov Since you have reported a separate problem, I've opened a new issue to track it #1168 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you. |
Prerequisites
Description
I would like to use oneOf with different types. (another way of solving the problem in issue #282)
Steps to Reproduce
Use this schema:
Playground link
Expected behavior
Want to be able to select different types.
Actual behavior
I get this:
Version
1.2.0
The text was updated successfully, but these errors were encountered: