mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
fix: MergeAll takes items into account (#511)
This commit is contained in:
parent
370d08aa1a
commit
47b2177f58
|
@ -233,6 +233,15 @@ export class OpenAPIParser {
|
|||
}
|
||||
}
|
||||
|
||||
if (subSchema.items !== undefined) {
|
||||
receiver.items = receiver.items || {};
|
||||
// merge inner properties
|
||||
receiver.items = this.mergeAllOf(
|
||||
{ allOf: [receiver.items, subSchema.items] },
|
||||
$ref + '/items',
|
||||
);
|
||||
}
|
||||
|
||||
if (subSchema.required !== undefined) {
|
||||
receiver.required = (receiver.required || []).concat(subSchema.required);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user