Issue substituting template variables with iparam values

Hello everyone!

I’m encountering a challenge while trying to substitute a request template header variable with a secure nested iparam value. Below is an illustration of the issue:

iparams.html

      const iparams = {
        someKey: {
          apiToken: "token",
        },
      };

      function postConfigs() {
        return {
          __meta: { secure: ["someKey.apiToken"] },
          ...iparams,
        };
      }

requests.json

  "example": {
    "schema": {
      "method": "GET",
      "host": "example.com",      
      "headers": {
        "Authorization": "Bearer <%= iparam.someKey.apiToken %>",
        "Content-Type": "application/json"
      }
    }
  },  

The substitution does not occur as intended, resulting in the request being sent without the token in the Authorization Bearer header. However, if I use a root variable from iparam, the substitution operates as expected.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.