Skip to content

Commit 0fdaa1d

Browse files
committed
Include array nav in missing prop report
1 parent cd5588b commit 0fdaa1d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/qdesrame/openapi/diff/output/ConsoleRender.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,13 @@ private String incompatibility(ComposedChanged changed) {
190190
if (changed instanceof ChangedSchema) {
191191
ChangedSchema cs = (ChangedSchema) changed;
192192

193-
return cs.getChangedProperties().keySet().stream().collect(Collectors.joining())
193+
String description = null;
194+
if (!cs.getChangedProperties().isEmpty()) {
195+
description = cs.getChangedProperties().keySet().stream().collect(Collectors.joining());
196+
} else if (cs.getItems() != null) {
197+
description = "[n]";
198+
}
199+
return description
194200
+ "."
195201
+ cs.getChangedElements().stream()
196202
.map(

0 commit comments

Comments
 (0)