Skip to content

Commit 50f16ff

Browse files
committed
fix: string array enum
1 parent 4363ffe commit 50f16ff

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

client/src/generated/apis/TransactionsApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface GetTransactionByIdRequest {
3535
export interface GetTransactionListRequest {
3636
limit?: number;
3737
offset?: number;
38-
type?: GetTransactionListTypeEnum;
38+
type?: Array<GetTransactionListTypeEnum>;
3939
}
4040

4141
export interface PostCoreNodeTransactionsRequest {
@@ -130,7 +130,7 @@ export class TransactionsApi extends runtime.BaseAPI {
130130
queryParameters['offset'] = requestParameters.offset;
131131
}
132132

133-
if (requestParameters.type !== undefined) {
133+
if (requestParameters.type) {
134134
queryParameters['type'] = requestParameters.type;
135135
}
136136

docs/openapi.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ paths:
119119
description: Filter by transaction type
120120
required: false
121121
schema:
122-
type: string
123-
enum: [coinbase, token_transfer, smart_contract, contract_call, poison_microblock]
122+
type: array
123+
items:
124+
type: string
125+
enum: [coinbase, token_transfer, smart_contract, contract_call, poison_microblock]
124126
responses:
125127
200:
126128
description: List of transactions

0 commit comments

Comments
 (0)