mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
show security displayName
This commit is contained in:
parent
5ef79a5617
commit
4f2f2b8479
|
@ -7,6 +7,7 @@ export class SecuritySchemeModel {
|
|||
sectionId: string;
|
||||
type: OpenAPISecurityScheme['type'];
|
||||
description: string;
|
||||
displayName: string;
|
||||
apiKey?: {
|
||||
name: string;
|
||||
in: OpenAPISecurityScheme['in'];
|
||||
|
@ -27,6 +28,7 @@ export class SecuritySchemeModel {
|
|||
this.id = id;
|
||||
this.sectionId = SECURITY_SCHEMES_SECTION_PREFIX + id;
|
||||
this.type = info.type;
|
||||
this.displayName = info['x-displayName'] || id;
|
||||
this.description = info.description || '';
|
||||
if (info.type === 'apiKey') {
|
||||
this.apiKey = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user