yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
625 stars 147 forks source link

warning: keyword 'where' does not need to be escaped in argument list #125

Closed mackoj closed 3 years ago

mackoj commented 5 years ago

Hi I have a few of these should I submit a PR to fix this warning ?

yonaskolb commented 5 years ago

Yes, you're welcome to submit a PR for this. It's tricky because where needs to be escaped in some cases, just not argument lists. The same goes for lots of other names that are listed in SwiftFormatter This could perhaps be fixed by escaping params in the actual template via a Stencil filter but that's more maintenance, or do you have another solution?