code: function setPathParamsFromArray(data, config, idx) {
    // only write parameters if they are not already defined in config
    if (data.requestData === undefined || config.pathParams) {
      return data;
    }
    // if we have requestData, fill the path params accordingly
    var mockParameters = {};
  
    data.pathParameters.forEach(function(parameter) {
      // find the mock data for this parameter name
      mockParameters[parameter.name] = data.requestData.filter(function(mock) {
        return mock.hasOwnProperty(parameter.name);
      })[idx][parameter.name];
    });
    data.pathParams = mockParameters;
    return data;
  }
docs: Populate path params from request data array
  @private
  @param  {json} data Generated Data
  @param  {json} config configuration for testGen
  @param  {int} idx Index of request for response
  @returns {json} return all the properties information