Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 723 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 723 Bytes

SwiftCodeGen

Swift CLI tools for generating Swift code.

Swift from Swagger

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