Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #5630
Closed
Open
Issue created Mar 19, 2020 by Administrator@rootContributor

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

Created by: LPCmedia

Bug Report Checklist

  • [X ] Have you search for related issues/PRs?

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
Assignee
Assign to
Time tracking