Skip to content

Commit 1b84ca1

Browse files
authored
Merge branch 'master' into master
2 parents 9595adc + 9e737b4 commit 1b84ca1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ Here are some companies/projects using Swagger Codegen in production. To add you
993993
- [Zalando](https://tech.zalando.com)
994994
- [ZEEF.com](https://zeef.com/)
995995
- [zooplus](https://www.zooplus.com/)
996+
- [Trifork](https://www.trifork.com/)
996997

997998
Presentations/Videos/Tutorials/Books
998999
----------------------------------------

modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ public CodegenModel fromModel(String name, Model model, Map<String, Model> allDe
14771477

14781478
if(parentName != null) {
14791479
m.parentSchema = parentName;
1480-
m.parent = toModelName(parentName);
1480+
m.parent = typeMapping.containsKey(parentName) ? typeMapping.get(parentName): toModelName(parentName);
14811481
addImport(m, m.parent);
14821482
if (allDefinitions != null) {
14831483
final Model parentModel = allDefinitions.get(m.parentSchema);

0 commit comments

Comments
 (0)