mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-02 11:20:20 +03:00
guard against nullable x-circular-ref
This commit is contained in:
parent
68f2fa2827
commit
888721dd7c
|
@ -171,7 +171,7 @@ export class OpenAPIParser {
|
||||||
$ref: string | undefined,
|
$ref: string | undefined,
|
||||||
refsStack: string[],
|
refsStack: string[],
|
||||||
): MergedOpenAPISchema {
|
): MergedOpenAPISchema {
|
||||||
if (schema['x-circular-ref']) {
|
if (schema?.hasOwnProperty('x-circular-ref')) {
|
||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user