mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-05 15:10:49 +00:00
add parent for allOf only (#5851)
This commit is contained in:
parent
55f928a82e
commit
41955b104c
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user