|
1 | 1 | package com.qdesrame.openapi.diff.output;
|
2 | 2 |
|
3 |
| -import static com.qdesrame.openapi.diff.model.Changed.result; |
4 |
| -import static j2html.TagCreator.*; |
5 |
| - |
6 | 3 | import com.qdesrame.openapi.diff.model.*;
|
7 | 4 | import com.qdesrame.openapi.diff.utils.RefPointer;
|
8 | 5 | import com.qdesrame.openapi.diff.utils.RefType;
|
|
12 | 9 | import io.swagger.v3.oas.models.parameters.Parameter;
|
13 | 10 | import io.swagger.v3.oas.models.responses.ApiResponse;
|
14 | 11 | import j2html.tags.ContainerTag;
|
15 |
| -import org.apache.commons.lang3.StringUtils; |
16 | 12 |
|
17 | 13 | import java.util.List;
|
18 | 14 | import java.util.Map;
|
19 | 15 | import java.util.Optional;
|
20 | 16 |
|
| 17 | +import static com.qdesrame.openapi.diff.model.Changed.result; |
| 18 | +import static j2html.TagCreator.*; |
| 19 | + |
21 | 20 | public class HtmlRender implements Render {
|
22 | 21 |
|
23 | 22 | private String title;
|
@@ -349,7 +348,10 @@ private ContainerTag li_changedParam(ChangedParameter changeParam) {
|
349 | 348 | return li_deprecatedParam(changeParam);
|
350 | 349 | }
|
351 | 350 | boolean changeRequired = changeParam.isChangeRequired();
|
352 |
| - boolean changeDescription = Optional.ofNullable(changeParam.getDescription()).map(ChangedMetadata::isDifferent).orElse(false); |
| 351 | + boolean changeDescription = |
| 352 | + Optional.ofNullable(changeParam.getDescription()) |
| 353 | + .map(ChangedMetadata::isDifferent) |
| 354 | + .orElse(false); |
353 | 355 | Parameter rightParam = changeParam.getNewParameter();
|
354 | 356 | Parameter leftParam = changeParam.getNewParameter();
|
355 | 357 | ContainerTag li = li().withText(changeParam.getName() + " in " + changeParam.getIn());
|
|
0 commit comments