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
  • #2101
Closed
Open
Issue created Feb 09, 2019 by Administrator@rootContributor

[REQ] aspnetcore Make code generation configurable

Created by: A-Joshi

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

  • Trying to get the aspnetcore generator to generate interfaces only. This will be akin to the Java Spring support where we generate the interfaces for the API and let the servers implement the interface. The difficulty is that a lot of irrelevant code is generated and it should be easy to turn it off via the configuration.
  • The goal will be to add in additional configuration parameters to finetune what is generated.

Describe the solution you'd like

Want to have options to fine tune the generation by logical grouping without having to enumerate each possible output for the supporting files. E.g. generateWWWRoot would enable or disable generating the wwwroot directory.

Describe alternatives you've considered

Tried various options for the generator and looking a the generator code I don't think there is control over that. I have created a fork with the additional option (for the wwwroot directory) and it seems to to the job. Happy to submit the change as a PR

Additional context

Looking to extend this further to generate pure interfaces and models and at that point I see leveraging these options (some being set automatically based on the choice of generating an interface).

Assignee
Assign to
Time tracking