mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
show security scheme displayName
This commit is contained in:
parent
6a97239f50
commit
5ef79a5617
|
@ -70,7 +70,7 @@ export class SecurityRequirement extends React.PureComponent<SecurityRequirement
|
|||
{security.schemes.map(scheme => {
|
||||
return (
|
||||
<SecurityRequirementAndWrap key={scheme.id}>
|
||||
<Link to={scheme.sectionId}>{scheme.id}</Link>
|
||||
<Link to={scheme.sectionId}>{scheme['x-displayName'] || scheme.id}</Link>
|
||||
{scheme.scopes.length > 0 && ' ('}
|
||||
{scheme.scopes.map(scope => (
|
||||
<ScopeName key={scope}>{scope}</ScopeName>
|
||||
|
|
Loading…
Reference in New Issue
Block a user