mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
Apply collection format to SIMPLE enum style
in order to separate 'header' parameter values
This commit is contained in:
parent
827880a624
commit
0e744adb80
@ -3941,7 +3941,10 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
}
|
||||
|
||||
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()) {
|
||||
return "csv";
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user