mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
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.collectionFormat = collectionFormat;
|
||||
// default to csv
|
||||
codegenParameter.collectionFormat = StringUtils.isEmpty(collectionFormat) ? "csv" : collectionFormat;
|
||||
if ("multi".equals(collectionFormat)) {
|
||||
codegenParameter.isCollectionFormatMulti = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user