FLUTTER ECOSYSTEM

openapi_generator_cli

A dart wrapper around openapi-generator inspired by the node implementation.

Latest version
7.0.0
30-day downloads
17.9K
Likes
21
Pub points
160

Package Overview

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

Overview

A Dart wrapper for the OpenAPI Generator, inspired by the Node.js version, enabling seamless generation of Dart code from OpenAPI specifications. It supports multiple platforms including macOS, Windows, and Linux, making it ideal for developers who need to automate API client creation. The tool simplifies integration with RESTful APIs by producing type-safe, well-structured Dart models and services based on OpenAPI 3.x specs. It’s particularly useful in projects requiring frequent updates to API contracts.

Use cases
  • Automating API client generation
  • Integrating with CI/CD pipelines
  • Maintaining up-to-date API clients
  • Generating models and services from OpenAPI specs
  • Supporting team collaboration on API contracts
Key features
  • Cross-platform support
  • Integration with OpenAPI 3.x
  • Type-safe Dart output
  • Command-line interface
  • Customizable code generation templates
Suitable for
  • Dart developers using OpenAPI specs
  • Teams needing automated API client updates
  • Projects with evolving REST APIs
  • CI/CD workflows involving API changes
  • Developers familiar with openapi-generator
Considerations
  • Requires local installation of openapi-generator
  • May need configuration for custom templates
  • Dependent on OpenAPI spec quality
  • Not a runtime library but a code generator
  • Limited IDE integration beyond CLI
Supported platformsmacOSWindowsLinux

Install package

flutter pub add openapi_generator_cli

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects

No data available yet.