Skip to content

Commit

Permalink
Fixed issue where nested classes under arrays would not be generated (#…
Browse files Browse the repository at this point in the history
…593)

Co-authored-by: Rares Mirica <[email protected]>
  • Loading branch information
mrares and rares-mollie authored May 1, 2023
1 parent fbe7835 commit 5e73551
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/code_generators/swagger_models_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ abstract class SwaggerModelsGenerator extends SwaggerGeneratorBase {
result[innerClassName] = propSchema;
}
});

if (schema.items != null) {
result.addAll(getClassesFromInnerClasses(
{'${getValidatedClassName(classKey)}\$item': schema.items!}));
}
});

if (result.isNotEmpty) {
Expand Down

0 comments on commit 5e73551

Please sign in to comment.