File tree Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
- ## 4.11.0+ 1
1
+ ## 4.11.1
2
2
3
3
- Removed ``` log.severe ``` that shows event though generation is successful
4
4
- Updated documentation
Original file line number Diff line number Diff line change @@ -187,10 +187,9 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
187
187
var additionalProperties = '' ;
188
188
var reader = annotation.read ('additionalProperties' );
189
189
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 )}' );
194
193
}
195
194
196
195
if (additionalProperties.isNotEmpty) {
@@ -205,10 +204,9 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
205
204
var inlineSchemaOptions = '' ;
206
205
var reader = annotation.read ('inlineSchemaOptions' );
207
206
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 )}' );
212
210
}
213
211
214
212
if (inlineSchemaOptions.isNotEmpty) {
Original file line number Diff line number Diff line change 1
1
name : openapi_generator
2
2
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
4
4
homepage : https://github.com/gibahjoe/openapi-generator-dart
5
5
6
6
environment :
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ void main() {
25
25
outputDirectory: 'api/petstore_api')
26
26
''' ),
27
27
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...' ));
29
29
});
30
30
31
31
test ('to generate command with import and type mappings' , () async {
You can’t perform that action at this time.
0 commit comments