mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Fixed issue where we threw TypeError for undefined parameters
This commit is contained in:
@@ -500,13 +500,13 @@ module.exports = {
|
||||
pathParam = [];
|
||||
}
|
||||
pathParam.forEach((param, index, arr) => {
|
||||
if (param.hasOwnProperty('$ref')) {
|
||||
if (_.has(param, '$ref')) {
|
||||
arr[index] = this.getRefObject(param.$ref, components, options);
|
||||
}
|
||||
});
|
||||
|
||||
operationParam.forEach((param, index, arr) => {
|
||||
if (param.hasOwnProperty('$ref')) {
|
||||
if (_.has(param, '$ref')) {
|
||||
arr[index] = this.getRefObject(param.$ref, components, options);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user