cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
403 stars 134 forks source link

Generate models only flag / generate model of paths with certain tag #289

Closed LendaVadym closed 1 year ago

LendaVadym commented 1 year ago

Is it possible to add support for the following features: 1) possibility to generate models only. It could be a flag in a configuration file. 2) possibility to generate only models related to paths (endpoints) that were filtered by "includeTags" or "excludeTags" options. Currently, event if I filter paths (endpoints) by tag, all models are generated.

luisfpg commented 1 year ago

It is not possible. Starting with 0.50.x, a function is generated per operation variant. You can, however, disable services generation by setting "services": false in options. You'll have a bunch of functions which, when not referenced, won't be included in the output by Angular, so don't have any impact in the application.