forked from loafle/openapi-generator-original
Merge branch 'oas3_support2' of https://github.com/wing328/openapi-generator into oas3_support2
This commit is contained in:
commit
4c00d4564c
@ -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 {
|
||||||
|
@ -580,6 +580,7 @@ paths:
|
|||||||
parameters:
|
parameters:
|
||||||
- name: enum_header_string_array
|
- name: enum_header_string_array
|
||||||
in: header
|
in: header
|
||||||
|
explode: true
|
||||||
description: Header parameter enum test (string array)
|
description: Header parameter enum test (string array)
|
||||||
schema:
|
schema:
|
||||||
type: array
|
type: array
|
||||||
|
@ -1933,6 +1933,9 @@ class FakeApi
|
|||||||
$queryParams['enum_query_double'] = ObjectSerializer::toQueryValue($enum_query_double);
|
$queryParams['enum_query_double'] = ObjectSerializer::toQueryValue($enum_query_double);
|
||||||
}
|
}
|
||||||
// header params
|
// header params
|
||||||
|
if (is_array($enum_header_string_array)) {
|
||||||
|
$enum_header_string_array = ObjectSerializer::serializeCollection($enum_header_string_array, 'csv');
|
||||||
|
}
|
||||||
if ($enum_header_string_array !== null) {
|
if ($enum_header_string_array !== null) {
|
||||||
$headerParams['enum_header_string_array'] = ObjectSerializer::toHeaderValue($enum_header_string_array);
|
$headerParams['enum_header_string_array'] = ObjectSerializer::toHeaderValue($enum_header_string_array);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user