mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
added util tests for some methods
This commit is contained in:
@@ -575,7 +575,7 @@ module.exports = {
|
||||
paramType;
|
||||
|
||||
if (!param) {
|
||||
return '';
|
||||
return [];
|
||||
}
|
||||
// check for existence of schema
|
||||
if (param.hasOwnProperty('schema')) {
|
||||
@@ -978,6 +978,9 @@ module.exports = {
|
||||
|
||||
// console.log("path params = ", reqParams.path, pathVarArray)
|
||||
_.forEach(reqParams.query, (queryParam) => {
|
||||
if (queryParam.$ref) {
|
||||
queryParam = this.getRefObject(queryParam.$ref);
|
||||
}
|
||||
this.convertToPmQueryParameters(queryParam).forEach((pmParam) => {
|
||||
item.request.url.addQueryParams(pmParam);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user