forked from loafle/openapi-generator-original
[Java]: Client resttemplate and webclient: array parameters of type integer in path badly generated (#4379)
* 4375: Client resttemplate and webclient: array parameters of type integer in path badly generated * 4375: Fix samples * 4375: Fix samples * 4375: Fix samples
This commit is contained in:
committed by
William Cheng
parent
11bcb661a1
commit
94b58634a7
@@ -71,7 +71,7 @@ public class ApiClient {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
private String collectionToString(Collection<? extends CharSequence> collection) {
|
||||
private String collectionToString(Collection<?> collection) {
|
||||
return StringUtils.collectionToDelimitedString(collection, separator);
|
||||
}
|
||||
}
|
||||
@@ -390,7 +390,7 @@ public class ApiClient {
|
||||
* @param values The values of the parameter.
|
||||
* @return String representation of the parameter
|
||||
*/
|
||||
public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection<? extends CharSequence> values) {
|
||||
public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection<?> values) {
|
||||
// create the value based on the collection format
|
||||
if (CollectionFormat.MULTI.equals(collectionFormat)) {
|
||||
// not valid for path params
|
||||
|
||||
Reference in New Issue
Block a user