yonaskolb / SwagGen

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

TT-97 workaround for https://bugs.swift.org/browse/SR-1386 #159

Open Kastet opened 5 years ago

Kastet commented 5 years ago

Fix for https://github.com/yonaskolb/SwagGen/issues/153

Changes:

Newly generated API library should not have many braking changes - only references to coding options would need to be updated - references to operations should continue working via the old namespace as it matches the module name.

Kastet commented 5 years ago

@yonaskolb can you look at this when you have a chance?

yonaskolb commented 5 years ago

Thanks for this @Kastet, and sorry it's taken me so long to get around to this. As you know probably by now you can create your own template and point to that as well, so official SwagGen releases don't hold you up.

As this is a breaking change anyway, it would be nice to group the tags under something as well. I find the code completion really helps. You have Operation for tagless requests, they could go under there. I would also suggest the name Endpoint instead of Operation for both. What do you think?