From 9ff1fd92bc01a66eee9689eeeab2b702c3b9e8a5 Mon Sep 17 00:00:00 2001 From: Andrii Date: Fri, 26 Jul 2024 13:02:24 +0300 Subject: [PATCH] Removed expand part for response --- openapi/access.yaml | 4 +-- openapi/go-client-generated/api/swagger.yaml | 30 ++----------------- openapi/go-client-generated/api_accounts.go | 12 +------- .../go-client-generated/docs/AccountsApi.md | 4 +-- 4 files changed, 5 insertions(+), 45 deletions(-) diff --git a/openapi/access.yaml b/openapi/access.yaml index ee90fd062..204396983 100644 --- a/openapi/access.yaml +++ b/openapi/access.yaml @@ -399,9 +399,7 @@ paths: schema: $ref: '#/components/schemas/BlockHeight' required: false - description: The block height to query for the account details at the "sealed" is used by default. - - $ref: '#/components/parameters/expandParam' - - $ref: '#/components/parameters/selectParam' + description: The block height to query for the account balance. "sealed" is used by default. responses: '200': description: OK diff --git a/openapi/go-client-generated/api/swagger.yaml b/openapi/go-client-generated/api/swagger.yaml index e51edb7db..95e954260 100644 --- a/openapi/go-client-generated/api/swagger.yaml +++ b/openapi/go-client-generated/api/swagger.yaml @@ -725,39 +725,13 @@ paths: $ref: '#/components/schemas/Address' - name: block_height in: query - description: The block height to query for the account details at the "sealed" - is used by default. + description: The block height to query for the account balance. "sealed" is + used by default. required: false style: form explode: true schema: $ref: '#/components/schemas/BlockHeight' - - name: expand - in: query - description: A comma-separated list indicating which properties of the content - to expand. - required: false - style: form - explode: false - schema: - minItems: 1 - uniqueItems: true - type: array - items: - type: string - - name: select - in: query - description: A comma-separated list indicating which properties of the content - to return. - required: false - style: form - explode: false - schema: - minItems: 1 - uniqueItems: true - type: array - items: - type: string responses: "200": description: OK diff --git a/openapi/go-client-generated/api_accounts.go b/openapi/go-client-generated/api_accounts.go index 6763b2000..50802d8f3 100644 --- a/openapi/go-client-generated/api_accounts.go +++ b/openapi/go-client-generated/api_accounts.go @@ -31,16 +31,12 @@ Get an account balance by provided address in latest \"sealed\" block * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param address The address of the account. * @param optional nil or *AccountsApiAccountsAddressBalanceGetOpts - Optional Parameters: - * @param "BlockHeight" (optional.Interface of BlockHeight) - The block height to query for the account details at the \"sealed\" is used by default. - * @param "Expand" (optional.Interface of []string) - A comma-separated list indicating which properties of the content to expand. - * @param "Select_" (optional.Interface of []string) - A comma-separated list indicating which properties of the content to return. + * @param "BlockHeight" (optional.Interface of BlockHeight) - The block height to query for the account balance. \"sealed\" is used by default. @return AccountBalance */ type AccountsApiAccountsAddressBalanceGetOpts struct { BlockHeight optional.Interface - Expand optional.Interface - Select_ optional.Interface } func (a *AccountsApiService) AccountsAddressBalanceGet(ctx context.Context, address string, localVarOptionals *AccountsApiAccountsAddressBalanceGetOpts) (AccountBalance, *http.Response, error) { @@ -63,12 +59,6 @@ func (a *AccountsApiService) AccountsAddressBalanceGet(ctx context.Context, addr if localVarOptionals != nil && localVarOptionals.BlockHeight.IsSet() { localVarQueryParams.Add("block_height", parameterToString(localVarOptionals.BlockHeight.Value(), "")) } - if localVarOptionals != nil && localVarOptionals.Expand.IsSet() { - localVarQueryParams.Add("expand", parameterToString(localVarOptionals.Expand.Value(), "csv")) - } - if localVarOptionals != nil && localVarOptionals.Select_.IsSet() { - localVarQueryParams.Add("select", parameterToString(localVarOptionals.Select_.Value(), "csv")) - } // to determine the Content-Type header localVarHttpContentTypes := []string{} diff --git a/openapi/go-client-generated/docs/AccountsApi.md b/openapi/go-client-generated/docs/AccountsApi.md index ec87c6f0e..33f4b70df 100644 --- a/openapi/go-client-generated/docs/AccountsApi.md +++ b/openapi/go-client-generated/docs/AccountsApi.md @@ -27,9 +27,7 @@ Optional parameters are passed through a pointer to a AccountsApiAccountsAddress Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **blockHeight** | [**optional.Interface of BlockHeight**](.md)| The block height to query for the account details at the \"sealed\" is used by default. | - **expand** | [**optional.Interface of []string**](string.md)| A comma-separated list indicating which properties of the content to expand. | - **select_** | [**optional.Interface of []string**](string.md)| A comma-separated list indicating which properties of the content to return. | + **blockHeight** | [**optional.Interface of BlockHeight**](.md)| The block height to query for the account balance. \"sealed\" is used by default. | ### Return type