mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
simplifying diff
This commit is contained in:
parent
2edfb96c36
commit
2eeb96116d
@ -693,12 +693,10 @@ public class DefaultCodegen {
|
||||
Map<String, String> mediaType = new HashMap<String, String>();
|
||||
mediaType.put("mediaType", key);
|
||||
count += 1;
|
||||
if (count < operation.getConsumes().size()) {
|
||||
if (count < operation.getConsumes().size())
|
||||
mediaType.put("hasMore", "true");
|
||||
}
|
||||
else {
|
||||
else
|
||||
mediaType.put("hasMore", null);
|
||||
}
|
||||
c.add(mediaType);
|
||||
}
|
||||
op.consumes = c;
|
||||
|
Loading…
Reference in New Issue
Block a user