dart_swagger_to_models 0.6.0 copy "dart_swagger_to_models: ^0.6.0" to clipboard
dart_swagger_to_models: ^0.6.0 copied to clipboard

Generate null-safe Dart models from Swagger/OpenAPI specs with multiple styles, validation, test data and per-file output.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dart_swagger_to_models

With Flutter:

 $ flutter pub add dart_swagger_to_models

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dart_swagger_to_models: ^0.6.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dart_swagger_to_models/dart_swagger_to_models.dart';
1
likes
160
points
136
downloads
screenshot

Publisher

verified publishergoodwin.website

Weekly Downloads

Generate null-safe Dart models from Swagger/OpenAPI specs with multiple styles, validation, test data and per-file output.

Repository (GitHub)
View/report issues

Topics

#swagger #openapi #codegen #freezed #build-runner

Documentation

API reference

License

MIT (license)

Dependencies

args, build, crypto, http, json_annotation, path, yaml

More

Packages that depend on dart_swagger_to_models