Support for lazy recursive JSON schemas #1278
Labels
Area: Bridge
Affects some of the bridge packages
Bridge: JSON Schema
Affects the uniforms-bridge-json-schema package
Type: Feature
New features and feature requests
Milestone
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 👍
The text was updated successfully, but these errors were encountered: