Skip to content
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

support for array of objects with various dynamic schemas #552

Closed
1 task done
asifmom opened this issue Apr 20, 2017 · 1 comment
Closed
1 task done

support for array of objects with various dynamic schemas #552

asifmom opened this issue Apr 20, 2017 · 1 comment

Comments

@asifmom
Copy link

asifmom commented Apr 20, 2017

Prerequisites

  • I have read the documentation;
  • [ x] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.

Description

Check the jsfiddle https://jsfiddle.net/asifmomin/xtbyky32/

One of the items of the top level schema is a field component which is an array. It has a select field called Type, which has values M1, M2, M3 etc..
If the user has selected M1, then another dynamic field should be shown after Type field
If the user has selected M2, another subcomponent array would be show and so on..

I guess there are two approaches to solve this issue:

  1. support of anyof
  2. Somehow dynamically updated the schema on change event. I guess I can use additionalItems here. But in OnChange handler, you don't get to know the field due to which the onchange handler is called.

How would solve the edit from the formdata?

@glasserc
Copy link
Contributor

This is a duplicate of #52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants