Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-2247

Explore possibility of RJSF JSON schema dynamic changes

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None

      In the context of FLPATH-2187, we need to explore possibility of RJSF JSON schema dynamic loading of chunks based on user-provided data.

       

      Example use-case: The user selects a dropdown item, subsequently another form component queries backend for intended changes in the form which include new widgets and their structuring.

       

      We need to understand

      • How/If we can change portions of the JSON schema once the form is initially rendered (on the fly)
      • When the same JSON snippet (but different JavaScript object identity) is re-supplied in the JSON schema, will the component be removed and re-instantiated? Is its state lost? 
      • Decide if we can remove conditional rendering from the ADR (or put it low priority) 
      • Develop POC component fetching arrays of JSON Schema portions which are injected into the JSON 

              mlibra@redhat.com Marek Libra
              mlibra@redhat.com Marek Libra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: