From 4c53d7b8c4828a22d51073a643ec710296121501 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Tue, 3 Feb 2015 21:49:21 -0800 Subject: [PATCH] added formParam values --- .../com/wordnik/swagger/codegen/DefaultCodegen.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java b/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java index 8cbae1a034..207fb37c4f 100644 --- a/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java +++ b/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java @@ -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) {