added formParam values

This commit is contained in:
Tony Tam 2015-02-03 21:49:21 -08:00
parent 3b96894e75
commit 4c53d7b8c4

View File

@ -680,8 +680,14 @@ public class DefaultCodegen {
p.isBodyParam = new Boolean(true);
bodyParam = p;
}
// else if(param instanceof FormParameter)
// formParams.add(p);
else if(param instanceof FormParameter) {
formParams.add(p);
if("File".equals(p.dataType))
p.isFile = true;
else
p.notFile = true;
p.isFormParam = new Boolean(true);
}
}
}
for(String i: imports) {