Correctly setting path variable descriptions

This commit is contained in:
abhijitkane
2018-12-04 19:21:53 +05:30
parent a78669b1fb
commit 4f153e0d4d

View File

@@ -1209,7 +1209,10 @@ module.exports = {
query.value = (typeof query.value === 'object') ? JSON.stringify(query.value) : query.value;
});
item.request.url.variables = this.convertPathVariables('param', pathVarArray, reqParams.path);
item.request.url.variables.clear();
item.request.url.variables.assimilate(this.convertPathVariables('param', pathVarArray, reqParams.path));
// TODO: There is a bug in Postman that causes these request descriptions
// to be converted as "object Object"
// adding headers to request from reqParam
_.forEach(reqParams.header, (header) => {