show security displayName

This commit is contained in:
elis-k 2020-10-30 15:19:38 +01:00 committed by GitHub
parent 5ef79a5617
commit 4f2f2b8479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {