mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +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 resolved = this.deref(subSchema, forceCircular);
|
||||
const subRef = subSchema.$ref || $ref + '/allOf/' + idx;
|
||||
return {
|
||||
$ref: subSchema.$ref || $ref + '/allOf/' + idx,
|
||||
schema: this.deref(subSchema, forceCircular),
|
||||
$ref: subRef,
|
||||
schema: this.mergeAllOf(resolved, subRef, forceCircular),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user