mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-04-26 23:24:13 +00:00
add parent for allOf only (#5851)
This commit is contained in:
+1
-1
@@ -2223,7 +2223,7 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
}
|
||||
}
|
||||
|
||||
if (parent != null) {
|
||||
if (parent != null && composed.getAllOf() != null) { // set parent for allOf only
|
||||
m.parentSchema = parentName;
|
||||
m.parent = toModelName(parentName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user