Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_schema_builder

Build and validate JSON Schemas in Dart with a fluent, type‑safe API

pub.devRemove
swagger_to_dart

Generates freezed models and retrofit API clients from OpenAPI, Swagger, Postman or JSON Schema specs.

pub.devRemove
ScoresHealth87 (best)70
Maintenance85 (best)77
Quality100 (best)94
Popularity72 (best)38
Community80 (best)52
Compatibility100 (best)85
UsageDownloads (30 days)191k (best)2.5k
Likes34 (best)27
Pub points160 / 160160 / 160
GitHub stars1.8k (best)11
MaintenanceLatest release0.1.7, 3 months ago6.0.0, 7 weeks ago (best)
Major versions in 12 months0 (best)2
Contributors26 (best)3
Publisherlabs.flutter.devmatheer.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoYes
Direct dependencies7 (best)10
LicenseBSD-3-CLAUSEMIT
Setup effortLowMedium
JudgementStrengths
  • Full Draft 2020‑12 support
  • Fluent, type‑safe API
  • Synchronous validation path
  • Rich error reporting
  • Supports OpenAPI 3.x, Swagger 2.0, Postman collections and JSON Schema
  • Generates immutable freezed models with full JSON serialization
  • Creates Retrofit clients per tag, integrating with dio
Weaknesses
  • No code generation integration
  • Requires manual schema construction
  • Not a UI form builder
  • Requires Dart >=3.9 and generated code needs json_serializable >=6.10, raising SDK constraints
  • Adds build_runner and multiple code‑gen steps, increasing build complexity
  • Tied to dio/retrofit ecosystem, not flexible to other HTTP clients
WarningsNoneNone
json_schema_builder vs swagger_to_dart: which Flutter package should you use? | pubscout