Skip to content

viniciusaro/SwiftCodeGen

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published