yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
626 stars 146 forks source link

Add an option to exclude and not generate the APIClient.default property #182

Open zummenix opened 5 years ago

zummenix commented 5 years ago

Currently APIClient has the default static property which creates the instance of the class with a base url and default parameters: https://github.com/yonaskolb/SwagGen/blob/57fc0074f30a40a6a611520b6a550c23ac3003af/Templates/Swift/Sources/APIClient.swift#L6-L10 In our usecase, because urls will be different, it will be somewhat confusing and error prone to have it. I would want to add an option to exclude and not generate this property. What do you think?