Open lordrip opened 1 year ago
Hello @lordrip, thank you for this question. I think it is possible for Uniforms to support some kinds of recursive schemas. You can take a look at my draft https://github.com/vazco/uniforms/pull/1282 and see if it could help you.
Hi @Monteth, this is great 👍.
In a couple weeks I need to work on custom fields to kinda have a workaround. In the meantime, please let me know if I can help somehow, I have a recursive schema to try out as well (although the recursive schema from your PR seems more than good to test it out)
Thanks for the response
Motivation why you'd like to see this in uniforms. In case there's a recursive JSON Schema, it would be nice to support lazy evaluation of such schema from the
JSONSchemaBridge
classExamples of how others could use this feature. Offering a mechanism to initialize
JSONSchemaBridge
up to a certain recursion level would allow rendering only up to a level of nested form elements.Hi team, I saw another similar issue closed about supporting lazy recursive schemas #596, but I'm not sure if managed to get a consensus about how to implement such capability.
Considering the following schema (this is a simplified version of a more complex one)
you can see that there's a recursive property from:
The idea would be to either limit the nested level up to point or to offer a lazy mechanism to render level by level depending on the user interaction.
I was checking the JSONSchemaBridge#getInitialValue but is not clear to me where to place a limit or even if this is the best place to do such thing.
Thanks in advance for the help :+1: