Returning when query param value is null.

This commit is contained in:
Raghav sidhanti
2015-06-22 20:16:35 -07:00
parent 6958db3d3d
commit b4d6fd3ba3
7 changed files with 7 additions and 27 deletions

View File

@@ -140,12 +140,7 @@ public class ApiInvoker {
List<Pair> params = new ArrayList<Pair>();
// preconditions
if (name == null || name.isEmpty()) return params;
if (value == null) {
params.add(new Pair(name, ""));
return params;
}
if (name == null || name.isEmpty() || value == null) return params;
Collection valueCollection = null;
if (value instanceof Collection) {

View File

@@ -1,8 +1,8 @@
package io.swagger.client.model;
import io.swagger.client.model.Category;
import io.swagger.client.model.Tag;
import java.util.*;
import io.swagger.client.model.Tag;
import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName;