mirror of
https://github.com/Redocly/redoc.git
synced 2025-06-29 16:53:08 +03:00
fix: definition name
This commit is contained in:
parent
1fb6967064
commit
94789e3145
|
@ -228,7 +228,8 @@ export class OpenAPIParser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (receiver.title === undefined && isNamedDefinition($ref)) {
|
// name of definition or title on top level
|
||||||
|
if (schema.title === undefined && isNamedDefinition($ref)) {
|
||||||
receiver.title = JsonPointer.baseName($ref);
|
receiver.title = JsonPointer.baseName($ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user