mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
fix: false-positive recursive tag case when using oneOf + allOf (#1534)
This commit is contained in:
parent
524e512b94
commit
8270481e9f
|
@ -261,10 +261,12 @@ export class OpenAPIParser {
|
|||
receiver.properties[prop] = subSchema.properties[prop];
|
||||
} else {
|
||||
// merge inner properties
|
||||
receiver.properties[prop] = this.mergeAllOf(
|
||||
const mergedProp = this.mergeAllOf(
|
||||
{ allOf: [receiver.properties[prop], subSchema.properties[prop]] },
|
||||
$ref + '/properties/' + prop,
|
||||
);
|
||||
receiver.properties[prop] = mergedProp
|
||||
this.exitParents(mergedProp); // every prop resolution should have separate recursive stack
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user