forked from loafle/openapi-generator-original
default collection format to csv according to the spec (#201)
This commit is contained in:
parent
db02cc2ac9
commit
16589de975
@ -2595,7 +2595,8 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
codegenParameter.items = codegenProperty.items;
|
codegenParameter.items = codegenProperty.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
codegenParameter.collectionFormat = collectionFormat;
|
// default to csv
|
||||||
|
codegenParameter.collectionFormat = StringUtils.isEmpty(collectionFormat) ? "csv" : collectionFormat;
|
||||||
if ("multi".equals(collectionFormat)) {
|
if ("multi".equals(collectionFormat)) {
|
||||||
codegenParameter.isCollectionFormatMulti = true;
|
codegenParameter.isCollectionFormatMulti = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user