oretgen 0.0.3

Dart native
Flutter Android iOS

OpenApi 3 to retrofit dart venerator. It makes models and retrofit skeleton file for future generation.

Oretgen #

A small dart library to generate retrofit skeleton from open api yaml file with generated models.

A sample command-line application with an entrypoint in bin/, library code in lib/. To build use command

dart2native bin/main.dart -o bin/oretgen

If You have open api file, You can generate retrofit

bin/oretgen -p full path to yaml file  -o full path tooutput directory for models

You can use common yaml open api file with slitted files. But it is necessary all file are in the same directory. Use flag 'multiple'

bin/oretgen -p full path to yaml file  -o full path tooutput directory for models --multiple

Example #

In example folder You can find test files. Use command

./bin/oretgen -p  $(pwd)/example/test.yaml -o $(pwd)/example

Warning #

This is alpha version. And may be have errors. Generator makes objects only from components/scheme

License #

Copyright © 2020 Licensed under license.

0
likes
70
pub points
0%
popularity

OpenApi 3 to retrofit dart venerator. It makes models and retrofit skeleton file for future generation.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

aparshakov@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

args, path, yaml

More

Packages that depend on oretgen