Skip to main content

flutter_api_contract 0.1.0 copy "flutter_api_contract: ^0.1.0" to clipboard
flutter_api_contract: ^0.1.0 copied to clipboard

Catch drift between your Dart/Flutter models and the backend's OpenAPI or Swagger schema before it crashes in production.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate flutter_api_contract

Use it

The package has the following executables:

$ api_contract

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add flutter_api_contract

With Flutter:

 $ flutter pub add flutter_api_contract

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

dependencies:
  flutter_api_contract: ^0.1.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:flutter_api_contract/flutter_api_contract.dart';
0
likes
160
points
52
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Catch drift between your Dart/Flutter models and the backend's OpenAPI or Swagger schema before it crashes in production.

Repository (GitHub)
View/report issues

Topics

#openapi #swagger #json #lint #cli

License

MIT (license)

Dependencies

analyzer, args, path, yaml

More

Packages that depend on flutter_api_contract