Skip to content

Commit 19884ec

Browse files
committed
chore: more cleanups
1 parent 2705006 commit 19884ec

File tree

6 files changed

+19
-64
lines changed

6 files changed

+19
-64
lines changed

example/github_issue_#137.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)
1919
class MyApp extends StatelessWidget {

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ environment:
3030
dependencies:
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

openapi-generator-annotations/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99

1010
dependencies:
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

1414
dev_dependencies:
1515
test:

openapi-generator/build.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff 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"]

openapi-generator/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)