swagen 0.0.1 copy "swagen: ^0.0.1" to clipboard
swagen: ^0.0.1 copied to clipboard

A code generator tool that converts Swagger/OpenAPI specification into Dart data models, RemoteDataSource classes, and structured exception handling. This simplifies API integration by automatically [...]

swagen #

swagen is a CLI tool to generate Flutter Clean Architecture code from Swagger / OpenAPI specifications.

It helps Flutter developers quickly scaffold:

  • Remote data sources
  • Repositories
  • Models & entities
  • Failures & exceptions

based on OpenAPI 3.x documents.


Features #

  • 🚀 Generate Flutter Clean Architecture structure
  • 📄 OpenAPI 3.x / Swagger support
  • 🔐 Security & authorization detection
  • 📦 Supports:
    • Path parameters
    • Query parameters
    • Request body
    • Multipart form data (file upload)
  • 🧩 Generates:
    • Datasource
    • Repository
    • Repository implementation
    • Models & entities
  • 🛠 CLI-based tool

Getting Started #

Prerequisites #

  • Dart SDK >= 3.0
  • Flutter project (recommended)

Installation #

Activate swagen globally:

dart pub global activate swagen
2
likes
0
points
120
downloads

Publisher

unverified uploader

Weekly Downloads

A code generator tool that converts Swagger/OpenAPI specification into Dart data models, RemoteDataSource classes, and structured exception handling. This simplifies API integration by automatically generating typed models, reducing manual coding effort, and ensuring consistency across the codebase.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dartz, equatable, flutter, flutter_secure_storage, http, yaml

More

Packages that depend on swagen