mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-02 03:10:23 +03:00
guard against nullable allOf
This commit is contained in:
parent
168189b2fd
commit
68f2fa2827
|
@ -177,7 +177,7 @@ export class OpenAPIParser {
|
||||||
|
|
||||||
schema = this.hoistOneOfs(schema, refsStack);
|
schema = this.hoistOneOfs(schema, refsStack);
|
||||||
|
|
||||||
if (schema.allOf === undefined) {
|
if (schema.allOf === null || schema.allOf === undefined) {
|
||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ export class OpenAPIParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
private hoistOneOfs(schema: OpenAPISchema, refsStack: string[]) {
|
private hoistOneOfs(schema: OpenAPISchema, refsStack: string[]) {
|
||||||
if (schema.allOf === undefined) {
|
if (schema.allOf === null || schema.allOf === undefined) {
|
||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user