Skip to content

Commit

Permalink
add parent for allOf only (OpenAPITools#5851)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored and michaelpro1 committed May 7, 2020
1 parent 1b86af1 commit a59d082
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 a59d082

Please sign in to comment.