Support collectionFormat in Ruby client

for header, query and form parameters
This commit is contained in:
xhh
2015-11-05 20:02:09 +08:00
parent 30a4be833b
commit 76eeb51af6
7 changed files with 100 additions and 16 deletions

View File

@@ -1446,6 +1446,9 @@ public class DefaultCodegen {
}
property = new ArrayProperty(inner);
collectionFormat = qp.getCollectionFormat();
if (collectionFormat == null) {
collectionFormat = "csv";
}
CodegenProperty pr = fromProperty("inner", inner);
p.baseType = pr.datatype;
p.isContainer = true;