Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /