mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-01 19:00:21 +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,
|
||||
refsStack: string[],
|
||||
): MergedOpenAPISchema {
|
||||
if (schema['x-circular-ref']) {
|
||||
if (schema?.hasOwnProperty('x-circular-ref')) {
|
||||
return schema;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user