-
Notifications
You must be signed in to change notification settings - Fork 415
Description
Is your feature request related to a problem? Please describe.
Right now we are using jsonforms by storing a schema and a uischema in a database column for various forms we want to render. As it stands, the only way to apply uischema to array elements (consider an array of objects) is via the use of some extra javascript using registerUISChema where you specifically have to write testers that match when you get into a specific array and inject that array's uischema at the appropriate place. This is incompatible with our approach since aren't injecting extra javascript (and that doesn't really seem like an appropriate solution). Right now we are just living with the default generated uischema for array elements because it's the only viable option here.
Describe the solution you'd like
Some sort of mechanism for specifying the uischema inline to the overall uischema without having to call out to extra schemas. Perhaps borrowing from the json schema standard with some sort of $ref system? Or just the ability to specify a hunk of schema that will be pointing at an array and should repeat for each element in the array? I'm not quite sure the best solution here, because there would still need to be a way to add a new blank entry for adding elements to the array.
Describe alternatives you've considered
The only alternative is to just live with the default, or write some special case javascript using registerUISchema. The latter is not feasible so we are living with the former
Describe for which setup you like to have the improvement
Framework: react
RendererSet: material