mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Added proper comment for overriding url variable, removed unwanted assertions from the corresponding test
This commit is contained in:
@@ -2417,6 +2417,13 @@ module.exports = {
|
||||
const clonedItemURL = _.cloneDeep(item.request.url);
|
||||
|
||||
thisOriginalRequest.url = clonedItemURL;
|
||||
|
||||
/**
|
||||
* Setting variable
|
||||
* overriding `thisOriginalRequest.url.variable` as the url defination expects
|
||||
* 1. Field variable and not variables
|
||||
* 2. Field variable to be array of objects which maps to `clonedItemURL.variables.members`
|
||||
*/
|
||||
thisOriginalRequest.url.variable = clonedItemURL.variables.members;
|
||||
thisOriginalRequest.url.query = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user