trumbitta / nx-trumbitta

💡An attempt to start collecting all of my Nx-related Open Source work in a mono-repo.
MIT License
47 stars 11 forks source link

Unable to leverage .openapi-generator-ignore #83

Open Tungsten78 opened 1 year ago

Tungsten78 commented 1 year ago

I want to exclude some files from generation.

Using .openapi-generator-ignore isn't possible because the file doesn't exist when the generator looks for it.

Root cause: outputDir is deleted

Alternatively, if the executor allowed additional cli arguments we could use --ignore-file-override to reference a file at the nx project level.

swcm-mnestler commented 9 months ago

The OpenAPI generator (7.2.0) now supports the --openapi-generator-ignore-list CLI flag which allows you to ignore files from the get-go. It would be great to be able to configure this in the generate-api-lib-sources task options!