I am new to the library and I try to learn how to implement JSONForms using the seed example for modelling. When I change the schema to contain a nested object I get “No applicable renderer found.”.
Hi @llundin(llundin), thanks for your interest in JSON Forms. Nested objects work perfectly fine, you’ll just need to adapt the scope of the controls in the given ui schema, e.g.
Sorry I should have mentioned, I am trying to omit the uiSchema.
Using your example I can get it to work but is there a way I can do it without providing the layout?
I will leave this for now but maybe come back to it later.
I started to look at your next suggestion about the renderer. Did I understand correct, would it be possible to implement a generic renderer which takes any object and produce the same result as above? And possibly have some grouping around the nested properties?
I started to look at your next suggestion about the renderer. Did I understand correct, would it be possible to implement a generic renderer which takes any object and produce the same result as above? And possibly have some grouping around the nested properties?
In principle yes, but you no longer need the recursive schema generator then. You can take a look at our existing Object renderers, for example the one for React Material. They simply use the already existing shallow ui schema generator, generate a layout for their properties and then dispatch back to JSON Forms. As this renderer will again be called for any nested objects, objects with arbitrary depth can be handled.