You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
If a generated Api Client has a header field with schema array of an enum it uses the method collectionDelimiter which is provided in the infrastructure package (ApiAbstractions.kt)
openapi-generator version
7.10.0
OpenAPI declaration file content or url
Just need an enum array as parameter anywhere.
`
parameters:
name: values
in: header
required: false
schema:
type: array
description: All goods receipt types that should be sent back to the device
items:
type: string
description: Type of goods receipt request
enum:
- MULTIPLE
- ENUM
- VALUES
`
Bug Report Checklist
Description
If a generated Api Client has a header field with schema array of an enum it uses the method collectionDelimiter which is provided in the infrastructure package (ApiAbstractions.kt)
openapi-generator version
7.10.0
OpenAPI declaration file content or url
Just need an enum array as parameter anywhere.
`
parameters:
in: header
required: false
schema:
type: array
description: All goods receipt types that should be sent back to the device
items:
type: string
description: Type of goods receipt request
enum:
- MULTIPLE
- ENUM
- VALUES
`
Generation Details
Configure the kotlin generator to use okhttp
Steps to reproduce
Generate any API
Suggest a fix
Add the collectionDelimiter import always, or atleast when using it.
File https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache
The text was updated successfully, but these errors were encountered: