viniciusaro / SwiftCodeGen

Swift CLI tools for generating Swift code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Swift CLI tools for generating Swift code


Languages

Language:Swift 96.6%Language:Ruby 3.4%