mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-01 19:00:21 +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);
|
||||
|
||||
if (schema.allOf === undefined) {
|
||||
if (schema.allOf === null || schema.allOf === undefined) {
|
||||
return schema;
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ export class OpenAPIParser {
|
|||
}
|
||||
|
||||
private hoistOneOfs(schema: OpenAPISchema, refsStack: string[]) {
|
||||
if (schema.allOf === undefined) {
|
||||
if (schema.allOf === null || schema.allOf === undefined) {
|
||||
return schema;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user