Skip to content

Commit e5e3b5e

Browse files
committed
updated generator
1 parent c19b2c0 commit e5e3b5e

File tree

17 files changed

+105
-57
lines changed

17 files changed

+105
-57
lines changed

openapi-generator-annotations/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
## 3.0.1
2+
- ###BREAKING CHANGE -> Updated generator enums to camelCase and removed old ones.
3+
14
## 3.0.0-nullsafety.1
25

36
- Bumped generator version to 5.0.0. This has some breaking changes. [Click here](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.0.0) to view changes
47
- bumped null safety
8+
59
## 2.2.0
610

711
- Added support for flutter wrappers

openapi-generator-annotations/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ The api sdk will be generated in the folder specified in the annotation. See exa
4949

5050
Give a thumbs up if you like this library
5151

52+
53+
## Known Issues
54+
### Dependency issues/conflicts
55+
This is not an issue with this library but with flutter/dart in general. If you are having issues with dependencies, what
56+
you can do is make use of dependency overrides. This is added to the pubspec.yaml of the generated package and then the pubspec
57+
must be added to the .openapi-generator-ignore of the generated package.
58+
For example, let's assume you want to override the analyzer package for the generated source
59+
60+
in generatedsource/pubspec.yaml add the following
61+
```yaml
62+
dependency_overrides:
63+
analyzer: 1.0.0
64+
```
65+
Then in generatedsources/.openapi-generator-ignore, add the below so that the pubspec is not overwritten next time you run source gen
66+
```.gitignore
67+
pubspec.yaml
68+
```
69+
The above steps are usefull when you have issues with dependency conflicts, clashes. You can even use it to upgrade the library packages in the generated source.
70+
71+
5272
## Features and bugs
5373

5474
Please file feature requests and bugs at the [issue tracker][tracker].

openapi-generator-annotations/example/example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import 'package:openapi_generator_annotations/openapi_generator_annotations.dart
44
additionalProperties:
55
AdditionalProperties(pubName: 'petstore_api', pubAuthor: 'Johnny dep'),
66
inputSpecFile: 'example/openapi-spec.yaml',
7-
generatorName: Generator.DART_JAGUAR,
7+
generatorName: Generator.dio,
88
outputDirectory: 'api/petstore_api')
99
class Example extends OpenapiGeneratorConfig {}

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -247,18 +247,6 @@ enum SerializationFormat { JSON, PROTO }
247247

248248
/// The name of the generator to use
249249
enum Generator {
250-
@Deprecated('Use Generator.dart instead')
251-
DART,
252-
253-
@Deprecated('Use Generator.dio instead')
254-
DART_DIO,
255-
256-
@Deprecated('Use Generator.dioAlt instead')
257-
DART2_API,
258-
259-
@Deprecated('Use Generator.jaguar instead')
260-
DART_JAGUAR,
261-
262250
/// This generator uses the default http package that comes with dart
263251
/// corresponds to dart
264252
dart,
@@ -271,7 +259,7 @@ enum Generator {
271259
/// https://pub.flutter-io.cn/packages/dio
272260
dio,
273261

274-
/// This uses the generator provided by bluetrainsoftware which internally uses the dio packaget
262+
/// This uses the generator provided by bluetrainsoftware which internally uses the dio package
275263
///
276264
/// You can read more about it here https://github.com/dart-ogurets/dart-openapi-maven
277265
dioAlt,
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: openapi_generator_annotations
22
description: Annotation package for openapi_generator https://pub.dev/packages/openapi_generator.
3-
version: 2.2.0
3+
version: 3.0.1
44
homepage: https://github.com/gibahjoe/openapi-generator-dart
55

66

77
environment:
8-
sdk: '>=2.12.0-133.2.beta <3.0.0'
8+
sdk: '>=2.12.1 <3.0.0'
99

1010
dev_dependencies:
11-
pedantic: ^1.10.0-nullsafety.3
12-
test: ^1.16.0-nullsafety.13
11+
pedantic: ^1.11.0
12+
test: ^1.16.8

openapi-generator-cli/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
## 3.0.1
2+
- Bumped dart-ogurets generator to 4.2 with [breaking changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
3+
- Bumped official openapi generator to 5.0.1. See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.0.1)
4+
15
## 2.2.0
26

37
- Bumped dart-ogurets generator to 4.1 with [breaking changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
8+
49
## 3.0.0-nullsafety.1
510

611
- Bumped null safety version

openapi-generator-cli/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,26 @@ Pub installs executables into `{flutter sdk dir}/.pub-cache/bin`, which has to b
3030

3131
You can use this package also using the openapi-generator dart plugin that helps you configure the appropriate commands. You can find it [here](https://pub.dev/packages/openapi_generator)
3232

33+
34+
## Known Issues
35+
### Dependency issues/conflicts
36+
This is not an issue with this library but with flutter/dart in general. If you are having issues with dependencies, what
37+
you can do is make use of dependency overrides. This is added to the pubspec.yaml of the generated package and then the pubspec
38+
must be added to the .openapi-generator-ignore of the generated package.
39+
For example, let's assume you want to override the analyzer package for the generated source
40+
41+
in generatedsource/pubspec.yaml add the following
42+
```yaml
43+
dependency_overrides:
44+
analyzer: 1.0.0
45+
```
46+
Then in generatedsources/.openapi-generator-ignore, add the below so that the pubspec is not overwritten next time you run source gen
47+
```.gitignore
48+
pubspec.yaml
49+
```
50+
The above steps are usefull when you have issues with dependency conflicts, clashes. You can even use it to upgrade the library packages in the generated source.
51+
52+
3353
## Features and bugs
3454

3555
Please file feature requests and bugs at the [issue tracker][tracker].
279 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.0.0</version>
50+
<version>5.0.1</version>
5151
</dependency>
5252

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

openapi-generator-cli/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: openapi_generator_cli
22
description: A dart wrapper around openapi-generator inspired by the node implementation.
3-
version: 2.2.0
3+
version: 3.0.1
44
homepage: https://github.com/gibahjoe/openapi-generator-dart
55

66
environment:
7-
sdk: '>=2.12.0-133.2.beta <3.0.0'
7+
sdk: '>=2.12.1 <3.0.0'
88

99
dev_dependencies:
10-
pedantic: ^1.10.0-nullsafety.3
11-
test: ^1.16.0-nullsafety.13
10+
pedantic: ^1.11.0
11+
test: ^1.16.8
1212

1313
executables:
1414
openapi-generator: main

0 commit comments

Comments
 (0)