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

[REQ][typescript-angular] Option to rename ApiModule and Configuration

Created by: snebjorn

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

Generated angular client module will always be called ApiModule. The module also exposes a Configuration object which also cannot be renamed.

This isn't great when multiple generated clients are needed in a single project.

Describe the solution you'd like

I'd like an Config Option for typescript-angular that can configure the Module and Configuration prefix.

Option Description Values Default
modulePrefix The prefix of the file and class of the generated module (<prefix>.module.ts and class <prefix>Module).   Api
configuraionPrefix The prefix of the file and class of the generated configuration object (<prefix>Configuration.ts and class <prefix>Configuration).   null

Note the names are in the default fileNaming: camelCase format, but kebab-case should also be supported

Assignee
Assign to
Time tracking