Skip to content

Commit

Permalink
#251 Fix Parameter without description
Browse files Browse the repository at this point in the history
  • Loading branch information
jemacineiras committed Aug 8, 2023
1 parent bf63466 commit 9fd41c7
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ private static MultiValuedMap<String, Map<String, JsonNode>> mapApiGroupsByTags(
final MultiValuedMap<String, Map<String, JsonNode>> mapApis = new ArrayListValuedHashMap<>();
while (pathList.hasNext()) {
final Entry<String, JsonNode> openAPIPath = pathList.next();
final var mapMethodsByTag = getMapMethodsByTag(openAPIPath);
for (Entry<String, Map<String, JsonNode>> tagMethodEntry : mapMethodsByTag.entries()) {
mapApis.put(tagMethodEntry.getKey(), tagMethodEntry.getValue());
}
mapApis.putAll(getMapMethodsByTag(openAPIPath));
}

return mapApis;
Expand All @@ -75,8 +72,8 @@ private static MultiValuedMap<String, Map<String, JsonNode>> getMapMethodsByTag(
while (operations.hasNext()) {
final var method = operations.next();
if (ApiTool.hasNode(method.getValue(), "tags")) {
final var tag = ApiTool.getNode(method.getValue(), "tags").elements().next();
mapByTag.put(tag.asText(), Map.of(pathItem.getKey(), new ObjectNode(JsonNodeFactory.instance, Map.ofEntries(method))));
final var tag = ApiTool.getNode(method.getValue(), "tags").elements().next().asText();
mapByTag.put(tag, Map.of(pathItem.getKey(), new ObjectNode(JsonNodeFactory.instance, Map.ofEntries(method))));
}
}
return mapByTag;
Expand Down

0 comments on commit 9fd41c7

Please sign in to comment.