Skip to content

Commit 804382e

Browse files
committed
Fixed issue where defintions with empty title were converted with empty collection name
1 parent af9217d commit 804382e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libV2/helpers/collection/generateCollectionFromOpenAPI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = function ({ openapi }) {
9393

9494
const collectionVariables = resolveCollectionVariablesForBaseUrlFromServersObject(_.get(openapi, 'servers.0'));
9595

96-
let name = _.get(this.openapi, 'info.title');
96+
let name = _.get(openapi, 'info.title');
9797

9898
if (_.isEmpty(name) || !_.isString(name)) {
9999
name = COLLECTION_NAME;

0 commit comments

Comments
 (0)