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
  • #94
Closed
Open
Issue created May 18, 2018 by Jim Schubert@jimschubertContributor

Users should be able to query configurable vendor extensions via CLI

Description

Refer to https://github.com/OpenAPITools/openapi-generator/wiki/Vendor-Extensions

Generators which support user-configurable vendor extensions should expose these as valuable information to the user via CLI.

openapi-generator version

n/a

Related issues/PRs

n/a

Suggest a fix/enhancement

To reduce the amount of information exposed via config-help, and because vendor extensions aren't generally a means for configuring codegen but for extending output, we may want to consider making these queryable as a subcommand.

Some possible options for CLI usage:

$ cli config-help extensions --generator-name=java-feign
Generator: java-feign
Extensions:
  x-accepts
      A single Accepts value as the Feign API client needs a single value for Accepts header

  x-content-type
      A single "Content-Type" value as the Feign API client needs a single value for Content-Type header
$ cli config-help extensions --generator-name=cwiki
Generator: cwiki
Extensions: none

We may even want to consider exposing a metadata-only command, and moving config-help as a sub-command, but we can worry about shuffling the CLI options around within a minor release. For this feature request, I'd like to get extension information queryable.

Assignee
Assign to
Time tracking