Skip to content

Commit 28cd785

Browse files
committed
fix filtered-paths - assign filtered paths to original spec object
1 parent be0f6c9 commit 28cd785

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/spec-parser.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,8 @@ function filterPaths(openApiObject, matchPaths = '', matchType = '', removeEndpo
222222
}
223223
});
224224

225-
return {
226-
openapi: openApiObject.openapi,
227-
paths: filteredPaths,
228-
};
225+
openApiObject.paths = filteredPaths;
226+
return openApiObject;
229227
}
230228

231229
function getHeadersFromMarkdown(markdownContent) {

0 commit comments

Comments
 (0)