yonaskolb / SwagGen

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

Enum type ignores modelsuffix #292

Open mojidabckuu opened 2 years ago

mojidabckuu commented 2 years ago

If I add modelSuffix option then only objects generated with suffix. Looking into the code I found this line in Swift code fornatter

return escapeType("\(modelPrefix)\(name.upperCamelCased())")

Shall we add enum suffix support?

yonaskolb commented 2 years ago

Yeah I can see value in that. How do you use the modelPrefix? For organisational namespacing, or avoiding collisions?