Skip to content

Commit f269f1d

Browse files
committed
released 4.0.0
1 parent 15fa1c4 commit f269f1d

File tree

12 files changed

+32
-17
lines changed

12 files changed

+32
-17
lines changed

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ app.*.map.json
4444
/android/app/debug
4545
/android/app/profile
4646
/android/app/release
47+
api

example/lib/main.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ void main() {
66
}
77

88
@Openapi(
9-
additionalProperties: DioProperties(
10-
pubName: 'petstore_api',
11-
pubAuthor: 'Johnny dep.'),
9+
additionalProperties:
10+
DioProperties(pubName: 'petstore_api', pubAuthor: 'Johnny dep..'),
1211
inputSpecFile: 'openapi-spec.yaml',
13-
typeMappings: {
14-
'Pet': 'ExamplePet'
15-
},
12+
typeMappings: {'Pet': 'ExamplePet'},
1613
generatorName: Generator.dio,
14+
alwaysRun: true,
1715
outputDirectory: 'api/petstore_api')
1816
class MyApp extends StatelessWidget {
1917
const MyApp({Key? key}) : super(key: key);

example/pubspec.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ dependency_overrides:
2525
path: ../openapi-generator-annotations
2626
openapi_generator:
2727
path: ../openapi-generator
28+
openapi_generator_cli:
29+
path: ../openapi-generator-cli
30+
2831

2932
# Dependencies specify other packages that your package needs in order to work.
3033
# To automatically upgrade your package dependencies to the latest versions
@@ -35,7 +38,7 @@ dependency_overrides:
3538
dependencies:
3639
flutter:
3740
sdk: flutter
38-
openapi_generator_annotations: ^3.2.1
41+
openapi_generator_annotations: ^4.0.0
3942

4043

4144
# The following adds the Cupertino Icons font to your application.
@@ -46,7 +49,7 @@ dev_dependencies:
4649
flutter_test:
4750
sdk: flutter
4851
build_runner:
49-
openapi_generator: ^3.2.1
52+
openapi_generator: ^4.0.0
5053

5154
# The "flutter_lints" package below contains a set of recommended lints to
5255
# encourage good coding practices. The lint set provided by the package is

example/sourcegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
2+
flutter pub get
33
flutter pub run build_runner build --delete-conflicting-outputs

openapi-generator-annotations/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
## 4.0.0
22

33
- **BREAKING CHANGES**
4-
- `dioNext` and `jaguar` generators are removed
4+
- `dioNext` (replaced with `dio`) and `jaguar` generators are removed.
55

66
- Bumped dart-ogurets (_dioAlt_) generator to 5.13
77
with [changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
88
- Bumped official openapi generator to 6.0.0.
99
See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.0.0)
1010

11+
## 3.3.2
12+
13+
- Fix the enum value retrieval error
14+
1115
## 3.3.0
1216

1317
- Bumped dart-ogurets (_dioAlt_) generator to 5.11

openapi-generator-annotations/lib/src/openapi_generator_annotations_base.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ enum DioDateLibrary {
317317
/// support for timezones, calendars, cultures, formatting and parsing.
318318
timemachine
319319
}
320+
320321
enum SerializationFormat { JSON, PROTO }
321322

322323
/// The name of the generator to use
@@ -338,4 +339,5 @@ enum Generator {
338339
/// You can read more about it here https://github.com/dart-ogurets/dart-openapi-maven
339340
dioAlt,
340341
}
342+
341343
enum Wrapper { fvm, flutterw, none }

openapi-generator-cli/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 4.0.0
2+
3+
- Bumped dart-ogurets (_dioAlt_) generator to 5.13
4+
with [changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
5+
- Bumped official openapi generator to 6.0.0.
6+
See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.0.0)
7+
18
## 3.3.0
29

310
- Bumped dart-ogurets (_dioAlt_) generator to 5.11

openapi-generator-cli/bin/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ void main(List<String> arguments) async {
88
var binPath = (await Isolate.resolvePackageUri(
99
Uri.parse('package:openapi_generator_cli/openapi-generator.jar')))!
1010
.toFilePath(windows: Platform.isWindows);
11-
var JAVA_OPTS = Platform.environment['JAVA_OPTS'] ?? '';
11+
var javaOpts = Platform.environment['JAVA_OPTS'] ?? '';
1212

1313
var commands = [
1414
'-jar',
1515
"${"$binPath"}",
1616
...arguments,
1717
];
18-
if (JAVA_OPTS.isNotEmpty) {
19-
commands.insert(0, JAVA_OPTS);
18+
if (javaOpts.isNotEmpty) {
19+
commands.insert(0, javaOpts);
2020
}
2121
await Process.run('java', commands).then((ProcessResult pr) {
2222
print(pr.exitCode);
875 KB
Binary file not shown.

openapi-generator-cli/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
<dependency>
4848
<groupId>org.openapitools</groupId>
4949
<artifactId>openapi-generator-cli</artifactId>
50-
<version>5.3.0</version>
50+
<version>6.0.0</version>
5151
</dependency>
5252

5353
<dependency>
5454
<groupId>com.bluetrainsoftware.maven</groupId>
5555
<artifactId>openapi-dart-generator</artifactId>
56-
<version>5.11</version>
56+
<version>5.13</version>
5757
</dependency>
5858
</dependencies>
5959
</project>

0 commit comments

Comments
 (0)