Merge pull request #1509 from xhh/ruby-collection-format

[Ruby] Support collectionFormat for header, query and form parameters
This commit is contained in:
wing328
2015-11-06 17:07:48 +08:00
7 changed files with 100 additions and 16 deletions

View File

@@ -1447,6 +1447,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;