Skip to content

Commit

Permalink
Removed expand parts for response
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiDiachuk committed Jul 26, 2024
1 parent b6db3dd commit ef5539f
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 @@ -166,16 +166,12 @@ Get an account data by provided address in latest \"sealed\" block or
* @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 *AccountsApiAccountsAddressKeysGetOpts - 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 AccountPublicKeys
*/

type AccountsApiAccountsAddressKeysGetOpts struct {
BlockHeight optional.Interface
Expand optional.Interface
Select_ optional.Interface
}

func (a *AccountsApiService) AccountsAddressKeysGet(ctx context.Context, address string, localVarOptionals *AccountsApiAccountsAddressKeysGetOpts) (AccountPublicKeys, *http.Response, error) {
Expand All @@ -198,12 +194,6 @@ func (a *AccountsApiService) AccountsAddressKeysGet(ctx context.Context, address
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 @@ -65,9 +65,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 ef5539f

Please sign in to comment.