Skip to content

Commit 6b871bd

Browse files
committed
Merge branch 'mine-master' into refactor-testing
2 parents 4156d9a + 74c79e8 commit 6b871bd

16 files changed

+112
-24
lines changed

.release-please-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"openapi-generator": "4.13.0",
3-
"openapi-generator-annotations": "4.13.0",
4-
"openapi-generator-cli": "4.13.0"
2+
"openapi-generator": "4.13.1",
3+
"openapi-generator-annotations": "4.13.1",
4+
"openapi-generator-cli": "4.13.1"
55
}

openapi-generator-annotations/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
* remove duplicate run test, fix failing tests ([677a318](https://github.com/gibahjoe/openapi-generator-dart/commit/677a3189d4f694c999d3ea1cf0075543649e40c1))
1414
* repair the docker run command, update the type_methods to expand out the remote delegate ([c00b334](https://github.com/gibahjoe/openapi-generator-dart/commit/c00b3345d934e2f1508ba1129a3a769f86a85017))
1515

16+
## [4.13.1](https://github.com/gibahjoe/openapi-generator-dart/compare/v4.13.0...v4.13.1) (2023-09-04)
17+
18+
19+
### Bug Fixes
20+
21+
* **dependencies:** added required dependencies to pubspec ([7738439](https://github.com/gibahjoe/openapi-generator-dart/commit/7738439a89637bb1226f6586a0c9d311053e1702))
22+
* fixes useEnumExtension and other non string additional properties fields throwing error ([53b711a](https://github.com/gibahjoe/openapi-generator-dart/commit/53b711a3c9319e31ec0b159edfc76674b62feb19))
23+
1624
## 4.12.0
1725

1826
- Added spec diff tracking. This means you Openapi generator now tracks changes to your spec and only regenerates the

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,7 @@ class DioProperties extends AdditionalProperties {
537537

538538
DioProperties.fromMap(Map<String, dynamic> map)
539539
: dateLibrary = EnumTransformer.dioDateLibrary(map['dateLibrary']),
540-
nullableFields = map['nullableFields'] != null
541-
? map['nullableFields'] == 'true'
542-
: null,
540+
nullableFields = map['nullableFields'],
543541
serializationLibrary = EnumTransformer.dioSerializationLibrary(
544542
map['serializationLibrary']),
545543
super.fromMap(map);
@@ -613,12 +611,9 @@ class DioAltProperties extends AdditionalProperties {
613611
wrapper: wrapper);
614612

615613
DioAltProperties.fromMap(Map<String, dynamic> map)
616-
: nullSafe = map['nullSafe'] != null ? map['nullSafe'] == 'true' : null,
617-
nullSafeArrayDefault = map['nullSafeArrayDefault'] != null
618-
? map['nullSafeArrayDefault'] == 'true'
619-
: null,
620-
listAnyOf =
621-
map['listAnyOf'] != null ? map['listAnyOf'] == 'true' : null,
614+
: nullSafe = map['nullSafe'],
615+
nullSafeArrayDefault = map['nullSafeArrayDefault'],
616+
listAnyOf = map['listAnyOf'],
622617
pubspecDependencies = map['pubspecDependencies'],
623618
pubspecDevDependencies = map['pubspecDevDependencies'],
624619
super.fromMap(map);

openapi-generator-annotations/pubspec.yaml

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

66

openapi-generator-annotations/test/additional_properties_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void main() {
175175
'sortParamsByRequiredFlag': props.sortParamsByRequiredFlag,
176176
'sourceFolder': props.sourceFolder,
177177
'wrapper': 'none',
178-
'nullableFields': '${props.nullableFields}',
178+
'nullableFields': props.nullableFields,
179179
'dateLibrary': 'core',
180180
'serializationLibrary': 'json_serializable',
181181
};
@@ -289,9 +289,9 @@ void main() {
289289
'sortParamsByRequiredFlag': props.sortParamsByRequiredFlag,
290290
'sourceFolder': props.sourceFolder,
291291
'wrapper': 'none',
292-
'nullSafe': '${props.nullSafe}',
293-
'nullSafeArrayDefault': '${props.nullSafeArrayDefault}',
294-
'listAnyOf': '${props.listAnyOf}',
292+
'nullSafe': props.nullSafe,
293+
'nullSafeArrayDefault': props.nullSafeArrayDefault,
294+
'listAnyOf': props.listAnyOf,
295295
'pubspecDevDependencies': props.pubspecDevDependencies,
296296
'pubspecDependencies': props.pubspecDependencies,
297297
};

openapi-generator-cli/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
* Bumped versions to match ([506689c](https://github.com/gibahjoe/openapi-generator-dart/commit/506689c960491962c56cbb4418fc86dafc1a4c2e))
77

8+
## [4.13.1](https://github.com/gibahjoe/openapi-generator-dart/compare/v4.13.0...v4.13.1) (2023-09-04)
9+
10+
11+
### Bug Fixes
12+
13+
* Trigger version bump for CLI ([996f328](https://github.com/gibahjoe/openapi-generator-dart/commit/996f3281cad0bdaf58a3d0bbdc4df7dbdc7b135f))
14+
815
## 4.12.0
916

1017
- Bumped version to match annotations and core.

openapi-generator-cli/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ pubspec.yaml
5151
The above steps are usefull when you have issues with dependency conflicts, clashes. You can even use it to upgrade the
5252
library packages in the generated source.
5353

54+
## Contributing
55+
56+
Please read our [Contributing guidelines](../CONTRIBUTING.md) before submitting a Pull Request.
57+
5458
## Features and bugs
5559

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

openapi-generator-cli/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: openapi_generator_cli
22
description: A dart wrapper around openapi-generator inspired by the node implementation.
3-
version: 4.13.0
3+
version: 4.13.1
44
homepage: https://github.com/gibahjoe/openapi-generator-dart
55

66
environment:

openapi-generator/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
* remove unused imports ([4eb64c9](https://github.com/gibahjoe/openapi-generator-dart/commit/4eb64c90c2468a8ce26b79266c0e705be3e979de))
1616
* repair the docker run command, update the type_methods to expand out the remote delegate ([c00b334](https://github.com/gibahjoe/openapi-generator-dart/commit/c00b3345d934e2f1508ba1129a3a769f86a85017))
1717

18+
## [4.13.1](https://github.com/gibahjoe/openapi-generator-dart/compare/v4.13.0...v4.13.1) (2023-09-04)
19+
20+
21+
### Bug Fixes
22+
23+
* **dependencies:** added required dependencies to pubspec ([7738439](https://github.com/gibahjoe/openapi-generator-dart/commit/7738439a89637bb1226f6586a0c9d311053e1702))
24+
* fixes useEnumExtension and other non string additional properties fields throwing error ([53b711a](https://github.com/gibahjoe/openapi-generator-dart/commit/53b711a3c9319e31ec0b159edfc76674b62feb19))
25+
* updated logs ([45af1cf](https://github.com/gibahjoe/openapi-generator-dart/commit/45af1cf21ab1d11b12898b6cb8f2ee9895dca133))
26+
1827
## 4.12.0
1928

2029
- Added spec diff tracking. This means you Openapi generator now tracks changes to your spec and only regenerates the

openapi-generator/lib/src/extensions/type_methods.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ extension TypeMethods on ConstantReader {
7070

7171
return values[enumIndex];
7272
}
73-
}
73+
}

0 commit comments

Comments
 (0)