Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeswagger_dart_code_generator

Generates Dart models and Chopper API client code from Swagger and OpenAPI schemas.

pub.devRemove
swagger_parser

Generate Dart models and HTTP clients from Swagger and OpenAPI schemas.

pub.devRemove
ScoresHealth6287 (best)
Maintenance1798 (best)
Quality8997 (best)
Popularity71 (best)68
Community8080
Compatibility8585
UsageDownloads (30 days)79k125k (best)
Likes335 (best)124
Pub points135 / 160160 / 160 (best)
GitHub stars305307 (best)
MaintenanceLatest release4.1.1, 11 months ago2.3.0, 4 days ago (best)
Major versions in 12 months0 (best)1
Contributors4161 (best)
Publishermobilepeople.devcarapacik.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies117 (best)
LicenseAPACHE-2.0MIT
Setup effortMediumMedium
JudgementStrengths
  • Automates creation of extensive models and API requests from schemas.
  • Highly configurable through build.yaml (supports custom scalars, default values, paths filtering).
  • Supports multiple client and serializer options including Retrofit, Dio, Freezed, and dart_mappable.
  • Provides CLI commands to validate schemas and check files without writing.
Weaknesses
  • Requires maintaining and running build_runner for code generation.
  • Tight coupling with Chopper and json_serializable.
  • Requires updating to Dart ^3.13.0 for version 2.0.0.
  • Breaking changes in v2.0.0 require migrating v1 configurations.
WarningsNoneNone
swagger_dart_code_generator vs swagger_parser: which Flutter package should you use? | pubscout