Skip to content

Commit

Permalink
Fix tests failures
Browse files Browse the repository at this point in the history
  • Loading branch information
lnash94 committed Jun 19, 2024
1 parent 2af7c06 commit c2d3709
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,12 @@ private static void updateOASOperationWithMetaData(Map<String, ResourceMetaInfoA
if (userProvideOperationId != null && !userProvideOperationId.isBlank()) {
operation.setOperationId(userProvideOperationId);
}
operation.setTags(resourceMetaInfo.getTags());
operation.setSummary(resourceMetaInfo.getSummary());
if (resourceMetaInfo.getTags() != null && !resourceMetaInfo.getTags().isEmpty()) {
operation.setTags(resourceMetaInfo.getTags());
}
if (resourceMetaInfo.getSummary() != null && !resourceMetaInfo.getSummary().isBlank()) {
operation.setSummary(resourceMetaInfo.getSummary());
}
ApiResponses responses = operation.getResponses();
Map<String, Map<String, Map<String, Object>>> responseExamples = resourceMetaInfo.getResponseExamples();
for (Map.Entry<String, ApiResponse> response : responses.entrySet()) {
Expand Down

0 comments on commit c2d3709

Please sign in to comment.