OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.45k stars 6.49k forks source link

[REQ] aspnetcore Make code generation configurable #2101

Open A-Joshi opened 5 years ago

A-Joshi commented 5 years ago

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

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).

InfoSec812 commented 4 years ago

@A-Joshi I believe this is the case in the latest 5.0.0-beta. Could you test and confirm that your needs are addressed?