Skip to content

Commit

Permalink
Fix API annotation for api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-schwarz committed Nov 14, 2022
1 parent d66c577 commit ec71de4
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 3 deletions.
1 change: 1 addition & 0 deletions client-generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ models/CreateApiKeyResponseDto.ts
models/CreateServiceDocRequest.ts
models/CreateServiceDocResponse.ts
models/DeleteServiceDocResponse.ts
models/GetApiKeyResponseDto.ts
models/GetApiKeysResponseDto.ts
models/GetServiceDocResponse.ts
models/GetServiceGroupResponse.ts
Expand Down
34 changes: 34 additions & 0 deletions client-generated/models/GetApiKeyResponseDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// tslint:disable
/**
* msdoc server API
* The msdoc server API description
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

/**
* @export
* @interface GetApiKeyResponseDto
*/
export interface GetApiKeyResponseDto {
/**
* @type {number}
* @memberof GetApiKeyResponseDto
*/
id: number;
/**
* @type {string}
* @memberof GetApiKeyResponseDto
*/
keyName: string;
/**
* @type {string}
* @memberof GetApiKeyResponseDto
*/
creationTimestamp: string;
}
8 changes: 6 additions & 2 deletions client-generated/models/GetApiKeysResponseDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
* Do not edit the class manually.
*/

import type {
GetApiKeyResponseDto,
} from './';

/**
* @export
* @interface GetApiKeysResponseDto
*/
export interface GetApiKeysResponseDto {
/**
* @type {Array<string>}
* @type {Array<GetApiKeyResponseDto>}
* @memberof GetApiKeysResponseDto
*/
apiKeys: Array<string>;
apiKeys: Array<GetApiKeyResponseDto>;
}
1 change: 1 addition & 0 deletions client-generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from './CreateApiKeyResponseDto';
export * from './CreateServiceDocRequest';
export * from './CreateServiceDocResponse';
export * from './DeleteServiceDocResponse';
export * from './GetApiKeyResponseDto';
export * from './GetApiKeysResponseDto';
export * from './GetServiceDocResponse';
export * from './GetServiceGroupResponse';
Expand Down
5 changes: 4 additions & 1 deletion server/src/api-keys/api-keys.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export class CreateApiKeyResponseDto extends GetApiKeyResponseDto {
}

export class GetApiKeysResponseDto {
@ApiProperty()
@ApiProperty({
isArray: true,
type: GetApiKeyResponseDto,
})
apiKeys: GetApiKeyResponseDto[];
}

Expand Down

0 comments on commit ec71de4

Please sign in to comment.