Skip to content

Commit 741f8d8

Browse files
committed
chore: removed phantom log causing build failure
1 parent 1a5f2f8 commit 741f8d8

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

openapi-generator/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 4.11.0+1
1+
## 4.11.1
22

33
- Removed ```log.severe``` that shows event though generation is successful
44
- Updated documentation

openapi-generator/lib/src/openapi_generator_runner.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,9 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
187187
var additionalProperties = '';
188188
var reader = annotation.read('additionalProperties');
189189
if (!reader.isNull) {
190-
reader.revive().namedArguments.entries.forEach((entry) => {
191-
additionalProperties =
192-
'$additionalProperties${additionalProperties.isEmpty ? '' : ','}${convertToPropertyKey(entry.key)}=${convertToPropertyValue(entry.value)}'
193-
});
190+
reader.revive().namedArguments.entries.forEach((entry) =>
191+
additionalProperties =
192+
'$additionalProperties${additionalProperties.isEmpty ? '' : ','}${convertToPropertyKey(entry.key)}=${convertToPropertyValue(entry.value)}');
194193
}
195194

196195
if (additionalProperties.isNotEmpty) {
@@ -205,10 +204,9 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
205204
var inlineSchemaOptions = '';
206205
var reader = annotation.read('inlineSchemaOptions');
207206
if (!reader.isNull) {
208-
reader.revive().namedArguments.entries.forEach((entry) => {
209-
inlineSchemaOptions =
210-
'$inlineSchemaOptions${inlineSchemaOptions.isEmpty ? '' : ','}${convertToPropertyKey(entry.key)}=${convertToPropertyValue(entry.value)}'
211-
});
207+
reader.revive().namedArguments.entries.forEach((entry) =>
208+
inlineSchemaOptions =
209+
'$inlineSchemaOptions${inlineSchemaOptions.isEmpty ? '' : ','}${convertToPropertyKey(entry.key)}=${convertToPropertyValue(entry.value)}');
212210
}
213211

214212
if (inlineSchemaOptions.isNotEmpty) {

openapi-generator/pubspec.yaml

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

66
environment:

openapi-generator/test/builder_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void main() {
2525
outputDirectory: 'api/petstore_api')
2626
'''),
2727
contains(
28-
"generate -i ../openapi-spec.yaml -g dart-dio -o api/petstore_api --type-mappings=Pet=ExamplePet --additional-properties=pubName=petstore_api,pubAuthor=Johnny dep..."));
28+
'generate -i ../openapi-spec.yaml -g dart-dio -o api/petstore_api --type-mappings=Pet=ExamplePet --additional-properties=pubName=petstore_api,pubAuthor=Johnny dep...'));
2929
});
3030

3131
test('to generate command with import and type mappings', () async {

0 commit comments

Comments
 (0)