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
@@ -542,7 +542,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
List<Pair> params = new ArrayList<Pair>();
|
||||
|
||||
// preconditions
|
||||
if (name == null || name.isEmpty() || value == null) {
|
||||
if (name == null || name.isEmpty() || value == null || value.isEmpty()) {
|
||||
return params;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user