Skip to content

Commit

Permalink
Fixed #722 generation of some files
Browse files Browse the repository at this point in the history
  • Loading branch information
Uladzimir Paliukhovich committed Mar 5, 2024
1 parent 692fbdb commit 324bd5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/code_generators/swagger_models_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,8 @@ $allHashComponents;

final newModelMap = allOf.firstWhereOrNull((m) => m.properties.isNotEmpty);

final currentProperties = schema.properties;
final currentProperties =
Map<String, SwaggerSchema>.from(schema.properties);

currentProperties.addAll(newModelMap?.properties ?? {});

Expand Down

0 comments on commit 324bd5c

Please sign in to comment.