Swift CLI tools for generating Swift code.
The swiftcodegen generate command generates Moya targets and combine them into Repositories allowing a nice RxSwift interface for making API requests.
It uses Swift's Codable capabilities to parse a Swagger spec in json format. The spec contains all information needed to create models, optional requirements, return types and so on.
Here you can find an example of generated code from Swagger Pet sample