yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enum type ignores modelsuffix

mojidabckuu opened this issue · comments

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?

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

ezoic increase your site revenue