yonaskolb / SwagGen

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

cannot generator immutable properties (let vs var) #187

Open benrudhart opened 5 years ago

benrudhart commented 5 years ago

I am looking for an option to generate immutable properties (let vs var) in the models?

I'm using the modelType: struct option. The only promising option I found is mutableModels: false. But setting false or true here doesn't make a difference.

Is there an option to generate models that define properties with let instead of var?

alexbird commented 4 years ago

I am also curious about this