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
  • #5818
Closed
Open
Issue created Apr 03, 2020 by Administrator@rootContributor

[go-experimental] Allow overriding server URL

Created by: thiagoarrais

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

Since #4755 the go-experimental generator supports selecting servers, but I can't see how to override server URLs with an arbitrary basepaths. That would be useful, for example, when testing a client generated with production spec against an in-development version of a server.

Describe the solution you'd like

Having a context option for setting an arbitrary basepath would be nice. This maintains the spirit of #4755 of configuring the client via context options.

It would be configured like so:

ctx := context.WithValue(context.Background(), sw.ContextBasepath, "http://localhost:8000/in-development")
Assignee
Assign to
Time tracking