mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
Fix crash on methods with no summary, description and operationId
This commit is contained in:
parent
dcd43e4fc6
commit
3f7c3fb40d
|
@ -221,7 +221,8 @@ export class SchemaHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static methodSummary(method) {
|
static methodSummary(method) {
|
||||||
return method.summary || method.operationId || method.description.substring(0, 50);
|
return method.summary || method.operationId ||
|
||||||
|
(method.description && method.description.substring(0, 50)) || '<no description>';
|
||||||
}
|
}
|
||||||
|
|
||||||
static buildMenuTree(schema) {
|
static buildMenuTree(schema) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user