mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
feat: add support for x-description to override description of resolved
This commit is contained in:
parent
f3e8ab4f8e
commit
115eddf52e
|
@ -164,6 +164,9 @@ export class OpenAPIParser {
|
|||
this.exitRef(resolved);
|
||||
return res;
|
||||
}
|
||||
if (obj['x-description']) {
|
||||
return Object.assign({}, resolved, { description: obj['x-description'] });
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
return obj;
|
||||
|
@ -229,9 +232,9 @@ export class OpenAPIParser {
|
|||
};
|
||||
})
|
||||
.filter(child => child !== undefined) as Array<{
|
||||
$ref: string | undefined;
|
||||
schema: MergedOpenAPISchema;
|
||||
}>;
|
||||
$ref: string | undefined;
|
||||
schema: MergedOpenAPISchema;
|
||||
}>;
|
||||
|
||||
for (const { $ref: subSchemaRef, schema: subSchema } of allOfSchemas) {
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue
Block a user