mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-04 12:20:19 +03:00
Merge 7ee9d7f4f3
into e26c8b23d9
This commit is contained in:
commit
890cc33786
|
@ -241,6 +241,7 @@ export class OpenAPIParser {
|
|||
schema: MergedOpenAPISchema;
|
||||
}>;
|
||||
|
||||
const subSchemaTitles: string[] = [];
|
||||
for (const { $ref: subSchemaRef, schema: subSchema } of allOfSchemas) {
|
||||
const {
|
||||
type,
|
||||
|
@ -331,6 +332,14 @@ export class OpenAPIParser {
|
|||
// receiver.title = JsonPointer.baseName(subSchemaRef);
|
||||
}
|
||||
}
|
||||
|
||||
if (subSchema.title !== undefined) {
|
||||
subSchemaTitles.push(subSchema.title);
|
||||
}
|
||||
}
|
||||
|
||||
if (receiver.title === undefined && subSchemaTitles.length) {
|
||||
receiver.title = subSchemaTitles.join('+');
|
||||
}
|
||||
|
||||
return receiver;
|
||||
|
|
Loading…
Reference in New Issue
Block a user