swagger_parser 1.0.0+1
swagger_parser: ^1.0.0+1 copied to clipboard
Package that generates REST clients and data classes from OpenApi definition file
example/README.md
-
Put your schema file from swagger and add the path to it in pubspec.yaml #
-
Set the output directory in pubspec.yaml #
-
Run command below to generate rest clients and data classes: #
dart run swagger_parser:generate
-
Run code generation with
build_runner
forjson_seializable
(freezed
) andretrofit
with command: #
dart run build_runner build
-
Clients and models are generated! #