Skip to content

Commit 0bc73e3

Browse files
author
Bernardo Salvatore
committed
GH-1886 - Use summary value in input, don't override value
1 parent 3bd5ba0 commit 0bc73e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/customizers/ActuatorOperationCustomizer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ public Operation customize(Operation operation, HandlerMethod handlerMethod) {
108108
while (matcher.find()) {
109109
operationId = matcher.group(1);
110110
}
111-
if (!summary.contains("$"))
112-
operation.setSummary(summary);
111+
112+
if (operation.getSummary() == null && !summary.contains("$"))
113+
operation.setSummary(summary);
114+
113115
operation.setOperationId(operationId);
114116
}
115117
return operation;

0 commit comments

Comments
 (0)