Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaKandel committed Oct 30, 2024
1 parent db60ee0 commit be08963
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.15.1

* Fixed some issues

# 2.15.0

* Changed option `enums_case_sensitive` to correctly default to `true` as stated in documentation
Expand Down
4 changes: 2 additions & 2 deletions lib/src/code_generators/swagger_enums_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ ${allEnums.map((e) => e.toString()).join('\n')}
);

if (propertiesContainer != null) {
properties = propertiesContainer.properties;
properties = Map.from(propertiesContainer.properties);
} else {
properties = schema.properties;
properties = Map.from(schema.properties);
}

var allOfRef = allOf.firstWhereOrNull((e) => e.hasRef);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/code_generators/swagger_models_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ $allHashComponents;
final allOfSchema = allClasses[allOf.ref.getUnformattedRef()];

if (allOfSchema != null) {
final properties = allOfSchema.properties;
final properties = Map.from(allOfSchema.properties);
for (final allOf in allOfSchema.allOf) {
properties.addAll(allOf.properties);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: swagger_dart_code_generator

version: 2.15.0
version: 2.15.1

homepage: https://github.com/epam-cross-platform-lab/swagger-dart-code-generator
repository: https://github.com/epam-cross-platform-lab/swagger-dart-code-generator
Expand Down

0 comments on commit be08963

Please sign in to comment.