Skip to content

Commit 2f2ba2f

Browse files
committed
added empty string check for #1568
1 parent 1352dba commit 2f2ba2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-models/src/main/java/io/swagger/models/parameters/AbstractSerializableParameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void setDefaultValue(String defaultValue) {
185185
}
186186

187187
public Object getDefault() {
188-
if (defaultValue == null) {
188+
if (defaultValue == null || "".equals(defaultValue)) {
189189
return null;
190190
}
191191
try {

0 commit comments

Comments
 (0)