SwagGen is a library and command line tool for parsing and generating code for OpenAPI/Swagger 3.0 specs, completely written in Swift. It contains a Swagger library that can be used in Swift to load and parse Swagger specs. SwagGen is a command line tool that generates code from a OpenAPI/Swagger 3.0 spec. Templates for any language can be written that leverage this generator. SwagGen includes a bundled template for generating a client-side Swift library for interfacing with the Swagger spec. It includes support for model inheritance, shared enums, discrete and mutable request objects, inline schemas, Codable and Equatable models, configurable options, generic networking stack, and many other niceties.

Features

  • Swift Package Manager
  • Use as dependency
  • For the Swift template, a handy option is name, which changes the name of the generated framework from the default of API
  • Templates are made up of a template config file
  • Template examples for Swift
  • SwagGen can be used to generate code for any language

Project Samples

Project Activity

See All Activity >

Categories

Code Formatters

License

MIT License

Follow SwagGen

SwagGen Web Site

Other Useful Business Software
Build AI Apps with Gemini 3 on Vertex AI Icon
Build AI Apps with Gemini 3 on Vertex AI

Access Google’s most capable multimodal models. Train, test, and deploy AI with 200+ foundation models on one platform.

Vertex AI gives developers access to Gemini 3—Google’s most advanced reasoning and coding model—plus 200+ foundation models including Claude, Llama, and Gemma. Build generative AI apps with Vertex AI Studio, customize with fine-tuning, and deploy to production with enterprise-grade MLOps. New customers get $300 in free credits.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SwagGen!

Additional Project Details

Programming Language

Swift

Related Categories

Swift Code Formatters

Registered

2023-04-25