Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2519

[Orchestrator] Support JSONata Expressions in fetch:body and validate:body

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 1.9.0
    • 1.8.0
    • Orchestrator
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • RHDH F&UI plugins 3286

      Description of problem:

      fetch:body and validate:body currently accept template units ($$...) but do not evaluate JSONata expressions inside the body. As a result, JSONata-based dynamic values in request bodies are not resolved. We need to support JSONata evaluation for both validation calls (validate:body) and data fetch calls (fetch:body), so schema authors can build request payloads dynamically from form data and responses.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       # <steps>

      Actual results:

      JSONata expressions included in fetch:body or validate:body are not evaluated and are sent as literal strings.

      Expected results:

      JSONata expressions in fetch:body and validate:body are evaluated before the request is sent, for both fetch and validation calls.

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              rh-ee-lprabhu Lokananda Prabhu
              rh-ee-lprabhu Lokananda Prabhu
              RHDH Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: