Skip to content

Commit

Permalink
Removed expand part for response
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiDiachuk committed Jul 26, 2024
1 parent 621889b commit 9ff1fd9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 45 deletions.
4 changes: 1 addition & 3 deletions openapi/access.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 2 additions & 28 deletions openapi/go-client-generated/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 1 addition & 11 deletions openapi/go-client-generated/api_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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{}

Expand Down
4 changes: 1 addition & 3 deletions openapi/go-client-generated/docs/AccountsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9ff1fd9

Please sign in to comment.