swagger_to_dart
6.0.0, released 7 weeks ago by matheer.com
Generates freezed models and retrofit API clients from OpenAPI 3.x, Swagger 2.0, Postman collections and JSON Schema, in JSON or YAML.
What it does
This is the author's description from pub.dev. A fuller summary with use cases and trade-offs is in the queue and usually appears within a day or two.
Setup
- Kind
- Pure Dart
- Code generation
- Yes (build_runner)
- Direct dependencies
- 10
Alternatives
Packages that do the same job and could replace swagger_to_dart.
- json_schema
Validate JSON data against JSON Schema drafts in Dart.
63Compare - json_schema_builder
Build and validate JSON Schemas in Dart with a fluent, type‑safe API
87Compare - uuid_type
Provides UUID parsing, generation (v1, v4, v5) and comparison for Dart.
59Compare - acronym
A simple package to generate acronyms from strings with support for stop words and syllables.
45Compare
Works with
Packages commonly used together with swagger_to_dart: ones it builds on, ones built on it, and its own family.
- yamlswagger_to_dart depends on itA Dart library for parsing YAML documents into Dart data structures.
- dart_styleswagger_to_dart depends on itProvides an API and CLI to format Dart source code automatically.
- pubspec_parseswagger_to_dart depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- json_annotationswagger_to_dart depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- argsswagger_to_dart depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- code_builderswagger_to_dart depends on itA fluent, builder-based library for generating valid Dart code programmatically.
- freezed_annotationswagger_to_dart depends on itAnnotations for the freezed code-generator.