forked from loafle/openapi-generator-original
* #17460 add missing empty collection check * generate samples
This commit is contained in:
committed by
GitHub
parent
90f3b24edc
commit
8bab0ceb53
@@ -787,7 +787,7 @@ public class ApiClient {
|
||||
List<Pair> params = new ArrayList<Pair>();
|
||||
|
||||
// preconditions
|
||||
if (param == null || param.getName() == null || param.getName().isEmpty() || value == null) {
|
||||
if (param == null || param.getName() == null || param.getName().isEmpty() || value == null || value.isEmpty()) {
|
||||
return params;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user