Skip to content

Commit

Permalink
replaced method used on model to import the model not the mapping name
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverTetzTT authored Oct 20, 2023
1 parent ab8c4d2 commit ed4167d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ private ModelsMap postProcessModelsMap(ModelsMap objs) {
typingImports.add("Union");
Set<CodegenDiscriminator.MappedModel> discriminator = model.getDiscriminator().getMappedModels();
for (CodegenDiscriminator.MappedModel mappedModel : discriminator) {
postponedModelImports.add(mappedModel.getMappingName());
postponedModelImports.add(mappedModel.getModelName());
}
}
}
Expand Down

0 comments on commit ed4167d

Please sign in to comment.