Skip to content

Commit

Permalink
chore: more cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gibahjoe committed Nov 6, 2024
1 parent 2705006 commit 19884ec
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 64 deletions.
47 changes: 0 additions & 47 deletions example/github_issue_#137.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ void main() {
inputSpec:
RemoteSpec(path: 'https://petstore3.swagger.io/api/v3/openapi.json'),
typeMappings: {'Pet': 'ExamplePet'},
generatorName: Generator.dioAlt,
forceAlwaysRun: false,
generatorName: Generator.dio,
runSourceGenOnOutput: true,
skipIfSpecIsUnchanged: false,
outputDirectory: 'api/petstore_api',
)
class MyApp extends StatelessWidget {
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ environment:
dependencies:
flutter:
sdk: flutter
openapi_generator_annotations:
openapi_generator_annotations: ^6.0.0
petstore_api:
path: ./api/petstore_api

Expand All @@ -51,7 +51,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
openapi_generator:
openapi_generator: ^6.0.0

# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
Expand Down
2 changes: 1 addition & 1 deletion openapi-generator-annotations/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:

dependencies:
crypto: '>=3.0.6 <=4.0.0'
meta: '>=1.16.0 <=2.0.0'
meta: '>=1.15.0 <=2.0.0'

dev_dependencies:
test:
Expand Down
24 changes: 13 additions & 11 deletions openapi-generator/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ targets:
$default:
builders:
openapi_generator:
enabled: true
generate_for:
- test/utils.dart
- lib/**

# builders:
# openapi_generator:
# target: ":openapi_generator"
# import: "package:openapi_generator/src/builder.dart"
# builder_factories: ["openapiGenerator"]
# build_extensions: {".dart": [".g.part"]}
# auto_apply: dependents
# build_to: cache
# applies_builders: ["source_gen|combining_builder"]
# runs_before: ["source_gen|combining_builder"]

builders:
openapi_generator:
target: ":openapi_generator"
import: "package:openapi_generator/src/builder.dart"
builder_factories: ["openapiGenerator"]
build_extensions: {".dart": [".g.part"]}
auto_apply: dependents
build_to: cache
applies_builders: ["source_gen|combining_builder"]
runs_before: ["source_gen|combining_builder"]
2 changes: 1 addition & 1 deletion openapi-generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
analyzer: '>=2.0.0 <7.0.0'
openapi_generator_cli: ^6.0.0
crypto: '>=3.0.6 <=4.0.0'
meta: '>=1.16.0 <=2.0.0'
meta: '>=1.15.0 <=2.0.0'
yaml: ^3.1.2
http: '>=0.13.1 <=2.0.0'
logging: '>=1.0.0 <=2.0.0'
Expand Down

0 comments on commit 19884ec

Please sign in to comment.