OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.64k stars 6.53k forks source link

[BUG] typescript angular - parameters with style spaceDelimited generating csv #5630

Open LPCmedia opened 4 years ago

LPCmedia commented 4 years ago

Bug Report Checklist

**What's the actual output vs expected output?**

given a header param defined as :

{ "in": "header", "name": "Range", "required": true, "schema": { "type": "array", "items": { "type": "string" } }, "style": "spaceDelimited" }

and calling the generated method in ts angular with:

genMethod(["foo", "0","100"])

expected header:

Range: items 0 100

actual header

Range: items,0,100

Description

When specifying "style": "spaceDelimited" for a request header it is generated as csv.

openapi-generator version

docker image Using default tag: latest latest: Pulling from openapitools/openapi-generator-cli Digest: sha256:c1fa5d28b09e44889b4cc05138790343b4531687d5f20cdc5db175a7842d40c9

OpenAPI declaration file content or url