FLUTTER ECOSYSTEM

openapi_generator

Generator for openapi client sdk inspired by the npm implementation of openapi-generator-cli.

Latest version
7.0.0
30-day downloads
10.2K
Likes
125
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter/Dart package that generates client SDKs from OpenAPI specifications, inspired by the npm openapi-generator-cli. It automates the creation of type-safe Dart code for API interactions, reducing manual effort and potential errors. The generated code supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, enabling consistent API client usage across environments. Ideal for teams relying on OpenAPI/Swagger definitions to maintain robust, up-to-date API integrations in their applications.

Use cases
  • Automating API client generation from OpenAPI specs
  • Integrating REST APIs with type safety
  • Cross-platform API clients for Flutter apps
  • Maintaining API contracts in sync with backend changes
  • Reducing boilerplate in API service layers
Key features
  • Generates Dart code from OpenAPI 3.x specs
  • Supports multi-platform output
  • Produces type-safe API models and services
  • Integrates via Flutter pub add
  • Uses a CLI-like workflow
Suitable for
  • Flutter developers using OpenAPI-defined APIs
  • Teams needing automated API client updates
  • Projects requiring consistent API integration across platforms
  • Developers wanting to reduce manual API service coding
Considerations
  • Requires valid OpenAPI specification file
  • Generated code may need customization for complex endpoints
  • Best used in CI/CD pipelines for consistency
  • Not a runtime library—only generates source code
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add openapi_generator

Categories

Dependencies

Dependency list 11 items

Source repository

Related projects

No data available yet.