We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba83d98 commit 71f37acCopy full SHA for 71f37ac
1 file changed
lib/beautifier.js
@@ -172,7 +172,7 @@ module.exports = (openapi) => {
172
});
173
174
175
- openapi.endpoints = _.unique(_.pluck(openapi.paths, 'endpointName'));
+ openapi.endpoints = _.uniq(_.map(openapi.paths, 'endpointName'));
176
177
const commonPrefix = sharedStart(Object.keys(openapi.paths));
178
const levels = commonPrefix.split('/').length - 1;
0 commit comments