swagger-api/swagger-codegen

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

Open

#3,100 建立於 2016年6月9日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)HTML (5,474 fork)batch import
Enhancement: Generalhelp wanted

倉庫指標

Star
 (12,701 star)
PR 合併指標
 (30 天內沒有已合併 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

貢獻者指南