Skip to content

Commit

Permalink
fix #3173 - iterate filtered paths
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Apr 11, 2019
1 parent c5e9620 commit 9163e18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public OpenAPI filter(OpenAPI openAPI, OpenAPISpecFilter filter, Map<String, Lis
final Set<String> filteredTags = new HashSet<>();

Paths clonedPaths = new Paths();
for (String resourcePath : openAPI.getPaths().keySet()) {
PathItem pathItem = openAPI.getPaths().get(resourcePath);
for (String resourcePath : filteredOpenAPI.getPaths().keySet()) {
PathItem pathItem = filteredOpenAPI.getPaths().get(resourcePath);

PathItem filteredPathItem = filterPathItem(filter, pathItem, resourcePath, params, cookies, headers);

Expand Down

0 comments on commit 9163e18

Please sign in to comment.