Apply collection format to SIMPLE enum style

in order to separate 'header' parameter values
This commit is contained in:
akihito.nakano 2018-04-08 12:20:28 +09:00
parent 827880a624
commit 0e744adb80

View File

@ -3941,7 +3941,10 @@ public class DefaultCodegen implements CodegenConfig {
} }
protected String getCollectionFormat(Parameter parameter) { protected String getCollectionFormat(Parameter parameter) {
if (Parameter.StyleEnum.FORM.equals(parameter.getStyle())) { if (
Parameter.StyleEnum.FORM.equals(parameter.getStyle())
|| Parameter.StyleEnum.SIMPLE.equals(parameter.getStyle())
) {
if (parameter.getExplode() != null && parameter.getExplode()) { if (parameter.getExplode() != null && parameter.getExplode()) {
return "csv"; return "csv";
} else { } else {