mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
Fix nested allOfs
This commit is contained in:
parent
c1fe2e6899
commit
1994002685
|
@ -166,9 +166,11 @@ export class OpenAPIParser {
|
||||||
};
|
};
|
||||||
|
|
||||||
const allOfSchemas = schema.allOf.map((subSchema, idx) => {
|
const allOfSchemas = schema.allOf.map((subSchema, idx) => {
|
||||||
|
const resolved = this.deref(subSchema, forceCircular);
|
||||||
|
const subRef = subSchema.$ref || $ref + '/allOf/' + idx;
|
||||||
return {
|
return {
|
||||||
$ref: subSchema.$ref || $ref + '/allOf/' + idx,
|
$ref: subRef,
|
||||||
schema: this.deref(subSchema, forceCircular),
|
schema: this.mergeAllOf(resolved, subRef, forceCircular),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user