Skip to content

Commit

Permalink
add parent for allOf only (#5851)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Apr 8, 2020
1 parent 55f928a commit 41955b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,7 @@ public CodegenModel fromModel(String name, Schema schema) {
}
}

if (parent != null) {
if (parent != null && composed.getAllOf() != null) { // set parent for allOf only
m.parentSchema = parentName;
m.parent = toModelName(parentName);

Expand Down

0 comments on commit 41955b1

Please sign in to comment.