swagger-api/swagger-codegen

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

开放

#3,100 创建于 2016年6月9日

 (1 条评论) (1 个反应) (0 位负责人)HTML (5,474 个派生)batch import
Enhancement: Generalhelp wanted

仓库指标

星标
 (12,701 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南