SwagGen icon indicating copy to clipboard operation
SwagGen copied to clipboard

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

Open Kastet opened this issue 6 years ago • 2 comments

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

Changes:

  • remove top level namespace
  • move coding options into a new Config namespace
  • pull tags, version and Server out to the top level
  • if no tags, create Operation namespace

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 avatar Apr 26 '19 23:04 Kastet

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

Kastet avatar May 14 '19 08:05 Kastet

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?

yonaskolb avatar Jul 11 '19 13:07 yonaskolb