Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_schema

Validate JSON data against JSON Schema drafts in Dart.

pub.devRemove
swagger_to_dart

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

pub.devRemove
ScoresHealth6370 (best)
Maintenance1777 (best)
Quality8094 (best)
Popularity75 (best)38
Community80 (best)52
Compatibility100 (best)85
UsageDownloads (30 days)213k (best)2.5k
Likes45 (best)27
Pub points115 / 160160 / 160 (best)
GitHub stars44 (best)11
MaintenanceLatest release5.2.2, a year ago6.0.0, 7 weeks ago (best)
Major versions in 12 months0 (best)2
Contributors57 (best)3
Publisherworkiva.commatheer.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoYes
Direct dependencies5 (best)10
LicenseUNKNOWNMIT
Setup effortLowMedium
JudgementStrengths
  • Supports Draft 7, 2019‑09, 2020‑12
  • Asynchronous $ref resolution and URL/file loading
  • No code generation required
  • 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
  • Adds runtime overhead for validation
  • Limited to validation – no schema‑based code generation
  • 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 vs swagger_to_dart: which Flutter package should you use? | pubscout