Skip to content

Commit 9804783

Browse files
committed
release 3.1.0
1 parent e5e3b5e commit 9804783

File tree

9 files changed

+38
-23
lines changed

9 files changed

+38
-23
lines changed

openapi-generator-annotations/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
## 3.0.1
1+
## 3.1.0
2+
- **BREAKING CHANGES**
3+
- Bumped dart-ogurets (_dioAlt_) generator to 5.0 with [breaking changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
4+
- Bumped official openapi generator to 5.1.0. See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.1.0)
5+
6+
## 3.0.2
27
- ###BREAKING CHANGE -> Updated generator enums to camelCase and removed old ones.
38

49
## 3.0.0-nullsafety.1

openapi-generator-annotations/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: openapi_generator_annotations
22
description: Annotation package for openapi_generator https://pub.dev/packages/openapi_generator.
3-
version: 3.0.1
3+
version: 3.1.0
44
homepage: https://github.com/gibahjoe/openapi-generator-dart
55

66

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

1010
dev_dependencies:
1111
pedantic: ^1.11.0

openapi-generator-cli/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
## 3.0.1
1+
## 3.1.0
2+
- **BREAKING CHANGES**
3+
- Bumped dart-ogurets (_dioAlt_) generator to 5.0 with [breaking changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
4+
- Bumped official openapi generator to 5.1.0. See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.1.0)
5+
6+
## 3.0.2
27
- Bumped dart-ogurets generator to 4.2 with [breaking changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
38
- Bumped official openapi generator to 5.0.1. See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.0.1)
49

-616 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.1</version>
50+
<version>5.1.0</version>
5151
</dependency>
5252

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

openapi-generator-cli/pubspec.yaml

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

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

99
dev_dependencies:
1010
pedantic: ^1.11.0

openapi-generator/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
## 3.0.1
1+
## 3.1.0
2+
- **BREAKING CHANGES**
3+
- Bumped dart-ogurets (_dioAlt_) generator to 5.0 with [breaking changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
4+
- Bumped official openapi generator to 5.1.0. See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.1.0)
5+
6+
## 3.0.2
27

38
- Bumped dart-ogurets generator to 4.2 with [breaking changes](https://github.com/dart-ogurets/dart-openapi-maven#changelog)
49
- Bumped official openapi generator to 5.0.1. See [change log](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.0.1)

openapi-generator/lib/src/openapi_generator_runner.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
3737
command = '$command$separator-g$separator$generator';
3838

3939
var outputDirectory =
40-
_readFieldValueAsString(annotation, 'outputDirectory', '')!;
40+
_readFieldValueAsString(annotation, 'outputDirectory', '');
4141
if (outputDirectory.isNotEmpty) {
4242
var alwaysRun = _readFieldValueAsBool(annotation, 'alwaysRun', false)!;
4343
var filePath = path.join(outputDirectory, 'lib/api.dart');
@@ -141,7 +141,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
141141
}
142142
}
143143
} catch (e) {
144-
print('Error generating spec ${e}');
144+
print('Error generating spec $e');
145145
rethrow;
146146
}
147147
return '';
@@ -173,9 +173,9 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
173173
'$additionalProperties${additionalProperties.isEmpty ? '' : ','}${entry.key}=${entry.value.toStringValue()}'
174174
});
175175

176-
if (additionalProperties != null && additionalProperties.isNotEmpty) {
176+
if (additionalProperties.isNotEmpty) {
177177
command =
178-
'$command$separator--additional-properties=${additionalProperties}';
178+
'$command$separator--additional-properties=$additionalProperties';
179179
}
180180
return command;
181181
}
@@ -226,18 +226,18 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
226226
String appendTemplateDirCommandArgs(
227227
ConstantReader annotation, String command, String separator) {
228228
var templateDir =
229-
_readFieldValueAsString(annotation, 'templateDirectory', '')!;
229+
_readFieldValueAsString(annotation, 'templateDirectory', '');
230230
if (templateDir.isNotEmpty) {
231-
command = '$command$separator-t$separator${templateDir}';
231+
command = '$command$separator-t$separator$templateDir';
232232
}
233233
return command;
234234
}
235235

236236
String appendInputFileCommandArgs(
237237
ConstantReader annotation, String command, String separator) {
238-
var inputFile = _readFieldValueAsString(annotation, 'inputSpecFile', '')!;
238+
var inputFile = _readFieldValueAsString(annotation, 'inputSpecFile', '');
239239
if (inputFile.isNotEmpty) {
240-
command = '$command$separator-i$separator${inputFile}';
240+
command = '$command$separator-i$separator$inputFile';
241241
}
242242
return command;
243243
}

openapi-generator/pubspec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: openapi_generator
22
description: Generator for openapi client sdk inspired by the npm implementation of openapi-generator-cli.
3-
version: 3.0.1
3+
version: 3.1.0
44
homepage: https://github.com/gibahjoe/openapi-generator-dart
55

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

99
dependencies:
1010
build: '>=0.12.6 <=2.0.0'
11-
source_gen: ^0.9.10+3
11+
source_gen: ^1.0.0
1212
path: ^1.8.0
13-
openapi_generator_annotations: ^3.0.1
14-
analyzer: ^1.1.0
15-
openapi_generator_cli: ^3.0.1
13+
openapi_generator_annotations: ^3.1.0
14+
analyzer: ^1.3.0
15+
openapi_generator_cli: ^3.1.0
1616

1717
dev_dependencies:
1818
pedantic: ^1.11.0

0 commit comments

Comments
 (0)