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
  • #1848
Closed
Open
Issue created Jan 08, 2019 by Administrator@rootContributor

[BUG] [Typescript] [Axios] invalid syntax produced when using headers

Created by: sruehl

Description

using headers produces invalid code. localVarHeaderParameter['{{baseName}}'] = {{paramName}}.join(COLLECTION_FORMATS["{{collectionFormat}}"])); should be localVarHeaderParameter['{{baseName}}'] = {{paramName}}.join(COLLECTION_FORMATS["{{collectionFormat}}"]); look for the last closing right parenthesis ')'

typescript-axios/api.mustache#L175

typescript-axios/api.mustache#L194

openapi-generator version

master HEAD

OpenAPI declaration file content or url

https://gist.github.com/sruehl/033bb26fc3de97533210d4aab269a55b

Command line used for generation

none

Steps to reproduce

use a header of type array

Related issues/PRs

#1864

Suggest a fix

remove the redundant parenthesis ')'

Assignee
Assign to
Time tracking