fix(codegen): fixed nested all_of
This commit is contained in:
parent
2e60e0a24f
commit
06c766b7ec
7 changed files with 265 additions and 81 deletions
|
|
@ -473,7 +473,11 @@ impl Object {
|
|||
} else {
|
||||
r#type
|
||||
};
|
||||
let obj = Self::from_schema_object(name, r#type, schemas, warnings.child("variant"));
|
||||
let obj = if let Some(types) = &r#type.all_of {
|
||||
Self::from_all_of(name, types, schemas, warnings.child("variant"))
|
||||
} else {
|
||||
Self::from_schema_object(name, r#type, schemas, warnings.child("variant"))
|
||||
};
|
||||
|
||||
result.description = result.description.or(obj.description);
|
||||
result.properties.extend(obj.properties);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue