File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/main/java/com/qdesrame/openapi/diff/output Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 8
8
import java .util .List ;
9
9
import java .util .Map ;
10
10
import java .util .Optional ;
11
- import java .util .stream .Collectors ;
12
11
import org .apache .commons .httpclient .HttpStatus ;
13
12
import org .apache .commons .lang3 .StringUtils ;
14
13
@@ -188,6 +187,7 @@ private void incompatibility(
188
187
.append (StringUtils .repeat (' ' , 10 ))
189
188
.append ("Missing property: " )
190
189
.append (propPrefix )
190
+ .append ("." )
191
191
.append (propName )
192
192
.append (System .lineSeparator ());
193
193
});
@@ -199,18 +199,18 @@ private void incompatibility(
199
199
200
200
String description = null ;
201
201
if (!cs .getChangedProperties ().isEmpty ()) {
202
- description = cs .getChangedProperties ().keySet ().stream ().collect (Collectors .joining ());
202
+ cs .getChangedProperties ().entrySet ().stream ()
203
+ .forEach (
204
+ (entry ) -> {
205
+ incompatibility (
206
+ output ,
207
+ entry .getValue (),
208
+ propPrefix + (propPrefix .isEmpty () ? "" : "." ) + entry .getKey ());
209
+ });
203
210
} else if (cs .getItems () != null ) {
204
- description = "[n]" ;
211
+ incompatibility ( output , cs . getItems (), propPrefix + "[n]" ) ;
205
212
}
206
- final String prefix = propPrefix + description + "." ;
207
- cs .getChangedElements ().stream ()
208
- .forEach (
209
- (c ) -> {
210
- if (c != null && c instanceof ComposedChanged ) {
211
- incompatibility (output , (ComposedChanged ) c , prefix );
212
- }
213
- });
213
+
214
214
return ;
215
215
}
216
216
You can’t perform that action at this time.
0 commit comments