forked from loafle/openapi-generator-original
Add parameterToString to normalize parameters for Java client
* Convert values to string for query/header/form parameters. * For parameter of type Date, convert to ISO 8601 format. * Also add utility methods to parse date in ISO 8601 format.
This commit is contained in:
@@ -621,6 +621,8 @@ public class DefaultCodegen {
|
||||
count += 1;
|
||||
if (count < operation.getConsumes().size())
|
||||
mediaType.put("hasMore", "true");
|
||||
else
|
||||
mediaType.put("hasMore", null);
|
||||
c.add(mediaType);
|
||||
}
|
||||
op.consumes = c;
|
||||
@@ -636,6 +638,8 @@ public class DefaultCodegen {
|
||||
count += 1;
|
||||
if (count < operation.getProduces().size())
|
||||
mediaType.put("hasMore", "true");
|
||||
else
|
||||
mediaType.put("hasMore", null);
|
||||
c.add(mediaType);
|
||||
}
|
||||
op.produces = c;
|
||||
|
||||
Reference in New Issue
Block a user