dart_json_schema 0.0.1 copy "dart_json_schema: ^0.0.1" to clipboard
dart_json_schema: ^0.0.1 copied to clipboard

A Dart/Flutter package that provides a simple @Field annotation for adding metadata to model fields and generates standard JSON schemas using a command-line tool.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate dart_json_schema

Use it

The package has the following executables:

$ dart_json_schema

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dart_json_schema

With Flutter:

 $ flutter pub add dart_json_schema

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

dependencies:
  dart_json_schema: ^0.0.1

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_json_schema/dart_json_schema.dart';
1
likes
0
points
156
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart/Flutter package that provides a simple @Field annotation for adding metadata to model fields and generates standard JSON schemas using a command-line tool.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, args, flutter, path, yaml

More

Packages that depend on dart_json_schema