Open r3econ opened 1 month ago
Hi, https://github.com/OpenAPITools/openapi-generator/pull/19621 was just merged, and it should fix this. The new swift6 generator it's experimental, because we are open to receive feedback com the community on how to improve it. So if you have any feedback, it's welcome. All the static classes we moved to singletons to make the compiler happy. Also we have a lot of @unchecked sendable. I'm not super happy with those, and I hope that we receive improvements from the community on how to fix thoses, because I'm not sure yet on what's the best way to manage those.
Description
The swift5 generator generates code that won't compile under Swift 6. All static variables generate. This can be already seen as a warning when Strict Concurrency mode is activated in the project:
Generated code
Usage showing the warning
openapi-generator version
7.7.0