File tree Expand file tree Collapse file tree 6 files changed +19
-64
lines changed
openapi-generator-annotations Expand file tree Collapse file tree 6 files changed +19
-64
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ void main() {
1111 inputSpec:
1212 RemoteSpec (path: 'https://petstore3.swagger.io/api/v3/openapi.json' ),
1313 typeMappings: {'Pet' : 'ExamplePet' },
14- generatorName: Generator .dioAlt,
15- forceAlwaysRun: false ,
14+ generatorName: Generator .dio,
1615 runSourceGenOnOutput: true ,
16+ skipIfSpecIsUnchanged: false ,
1717 outputDirectory: 'api/petstore_api' ,
1818)
1919class MyApp extends StatelessWidget {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ environment:
3030dependencies :
3131 flutter :
3232 sdk : flutter
33- openapi_generator_annotations :
33+ openapi_generator_annotations : ^6.0.0
3434 petstore_api :
3535 path : ./api/petstore_api
3636
@@ -51,7 +51,7 @@ dev_dependencies:
5151 flutter_test :
5252 sdk : flutter
5353 build_runner :
54- openapi_generator :
54+ openapi_generator : ^6.0.0
5555
5656 # The "flutter_lints" package below contains a set of recommended lints to
5757 # encourage good coding practices. The lint set provided by the package is
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ environment:
99
1010dependencies :
1111 crypto : ' >=3.0.6 <=4.0.0'
12- meta : ' >=1.16 .0 <=2.0.0'
12+ meta : ' >=1.15 .0 <=2.0.0'
1313
1414dev_dependencies :
1515 test :
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ targets:
22 $default :
33 builders :
44 openapi_generator :
5+ enabled : true
56 generate_for :
6- - test/utils.dart
7+ - lib/**
78
8- # builders:
9- # openapi_generator:
10- # target: ":openapi_generator"
11- # import: "package:openapi_generator/src/builder.dart"
12- # builder_factories: ["openapiGenerator"]
13- # build_extensions: {".dart": [".g.part"]}
14- # auto_apply: dependents
15- # build_to: cache
16- # applies_builders: ["source_gen|combining_builder"]
17- # runs_before: ["source_gen|combining_builder"]
9+
10+ builders :
11+ openapi_generator :
12+ target : " :openapi_generator"
13+ import : " package:openapi_generator/src/builder.dart"
14+ builder_factories : ["openapiGenerator"]
15+ build_extensions : {".dart": [".g.part"]}
16+ auto_apply : dependents
17+ build_to : cache
18+ applies_builders : ["source_gen|combining_builder"]
19+ runs_before : ["source_gen|combining_builder"]
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dependencies:
1414 analyzer : ' >=2.0.0 <7.0.0'
1515 openapi_generator_cli : ^6.0.0
1616 crypto : ' >=3.0.6 <=4.0.0'
17- meta : ' >=1.16 .0 <=2.0.0'
17+ meta : ' >=1.15 .0 <=2.0.0'
1818 yaml : ^3.1.2
1919 http : ' >=0.13.1 <=2.0.0'
2020 logging : ' >=1.0.0 <=2.0.0'
You can’t perform that action at this time.
0 commit comments