Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[All] Use .swagger-codegen-ignore instead of writeOptional #3100

Open
cbornet opened this issue Jun 9, 2016 · 1 comment
Open

[All] Use .swagger-codegen-ignore instead of writeOptional #3100

cbornet opened this issue Jun 9, 2016 · 1 comment

Comments

@cbornet
Copy link
Contributor

cbornet commented Jun 9, 2016

I think .swagger-codegen-ignore is better since it can be configured by the end user whereas writeOptional files are hard-coded in the codegen.
For instance, when generating the petstore samples, you want to overwrite the pom.xml but it doesn't occur unless you rm the file first.
It would be better to pre-configure in the templates the .swagger-codegen-ignore to ignore pom.xml, build.gradle, etc...
The only writeOptional file would then be .swagger-codegen-ignore

@wing328 wing328 added this to the v2.2.0 milestone Jun 10, 2016
@wing328 wing328 modified the milestones: v2.3.0, v2.2.0 Jul 7, 2016
@wing328
Copy link
Contributor

wing328 commented Jul 7, 2016

Let's target to do the migration from writeOptional to .swagger-codege-ignore in 2.3.0 stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants