|
21 | 21 | import org.openapitools.openapidiff.core.exception.RendererException; |
22 | 22 | import org.openapitools.openapidiff.core.model.*; |
23 | 23 | import org.openapitools.openapidiff.core.model.schema.ChangedOneOfSchema; |
| 24 | +import org.openapitools.openapidiff.core.model.schema.ChangedOperationId; |
24 | 25 | import org.openapitools.openapidiff.core.utils.RefPointer; |
25 | 26 | import org.openapitools.openapidiff.core.utils.RefType; |
26 | 27 | import org.slf4j.Logger; |
@@ -132,6 +133,10 @@ protected void listEndpoints( |
132 | 133 | operation.getHttpMethod().toString(), |
133 | 134 | operation.getPathUrl(), |
134 | 135 | operation.getSummary())); |
| 136 | + if (operation.getOperationId() != null && operation.getOperationId().isDifferent()) { |
| 137 | + safelyAppend(outputStreamWriter, titleH5("Operation ID:")); |
| 138 | + safelyAppend(outputStreamWriter, operationId(operation.getOperationId())); |
| 139 | + } |
135 | 140 | if (result(operation.getParameters()).isDifferent()) { |
136 | 141 | safelyAppend(outputStreamWriter, titleH5("Parameters:")); |
137 | 142 | safelyAppend(outputStreamWriter, parameters(operation.getParameters())); |
@@ -541,6 +546,10 @@ protected String metadata(String beginning, String name, ChangedMetadata changed |
541 | 546 | } |
542 | 547 | } |
543 | 548 |
|
| 549 | + protected String operationId(ChangedOperationId operationId) { |
| 550 | + return String.format("\nChanged: %s to %s\n\n", code(operationId.getLeft()), code(operationId.getRight())); |
| 551 | + } |
| 552 | + |
544 | 553 | protected String metadata(String metadata) { |
545 | 554 | return metadata("", metadata); |
546 | 555 | } |
|
0 commit comments