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
  • #8723
Closed
Open
Issue created Feb 16, 2021 by Administrator@rootContributor

[REQ] Not able to exclude headers as parameters

Created by: VictorAlbertos

Is your feature request related to a problem? Please describe.

We use the Kotlin-Retrofit-Coroutines to generate the sources based on the OpenApi specs. But in our manually generated code-base, we use for the headers OkHttp Interceptors, that way we don't have to supply in each call all the required headers.

But it does not seem to be a way to avoid generating those headers. We tried to download the Retrofit template and remove the {{>headerParams}} block: this ends up not adding the headers but it keeps all the "," for parameters separation:

Screenshot 2021-02-16 at 11 45 30

Describe the solution you'd like

A way to avoid adding the header parameters to the generated endpoints

Describe alternatives you've considered

When manually removing {{>headerParams}} from the template it just works fine without keeping the "," leftovers

Assignee
Assign to
Time tracking