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
  • #1290
Closed
Open
Issue created Oct 22, 2018 by Administrator@rootContributor

[elm] Add possibility to override basePath

Created by: curcas

Description

Generating the client for elm takes the current url as the basePath and gives no possibility to override it.

This is absolutely OK when an external API is used. But generating the client for a project which is shipped together with the API has always localhost in it. This should be customizable with the current URL under which the project is served.

openapi-generator version

v3.3.1

OpenAPI declaration file content or url

Not a specific one.

Command line used for generation

generate -i http://localhost/swagger/v1/swagger.json -g elm -o /generated

Steps to reproduce
  1. Have a swagger.json file
  2. Generate the elm client with the command above
  3. Open one of the Request files
  4. See the basePath is localhost and cannot be overriden or passed in.
Related issues/PRs
Suggest a fix/enhancement
Assignee
Assign to
Time tracking