Dart dev tool to download OpenAPI file and generate the OpenAPI client.
- java version 8 or above installed on system path
- private Gitlab repositories
dev_dependencies:
openapi:
git:
url: https://github.com/birneee/dart_openapi_generator.git
ref: 0.4.0
openapi:
generatorVersion: <version>
url: <url>
token: <token>
version: <tag>
pub run openapi:generate # for dart projects
flutter pub run openapi:generate # for flutter projects
pub run openapi:clean # for dart projects
flutter pub run openapi:clean # for flutter projects