You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The golang generated code has a header that only returns an error like so: func (c *Client) PocketGatewayGatewayAll(ctx context.Context, request *poktroll.PocketGatewayGatewayAllRequest) error { even though the endpoint contains an array like so:
/pocket/application/application:
get:
operationId: PocketApplicationApplicationAllresponses:
"200":
description: A successful response.schema:
type: objectproperties:
application:
type: arrayitems:
type: objectproperties:
address:
type: stringtitle: >- The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic encodingstake:
title: The total amount of uPOKT the application has stakedtype: objectproperties:
denom:
type: stringamount:
type: stringdescription: >- Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.service_configs:
type: arrayitems:
type: objectproperties:
service:
title: >- The Service for which the application is configuredtype: objectproperties:
id:
type: stringdescription: Unique identifier for the servicetitle: >- For example, what if we want to request a session for a certain service but with some additional configs that identify it?name:
type: stringdescription: >- (Optional) Semantic human readable name for the servicetitle: >- TODO_TECHDEBT: Name is currently unused but acts as a reminder than an optional onchain representation of the service is necessarytitle: >- ApplicationServiceConfig holds the service configuration the application stakes fortitle: >- The list of services this appliccation is configured to request service fordelegatee_gateway_addresses:
type: arrayitems:
type: stringtitle: >- The Bech32 encoded addresses for all delegatee Gateways, in a non-nullable slicetitle: >- Application defines the type used to store an on-chain definition and state for an applicationpagination:
type: objectproperties:
next_key:
type: stringformat: bytedescription: |- next_key is the key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results.total:
type: stringformat: uint64title: >- total is total number of results available if PageRequest.count_total was set, its value is undefined otherwisedescription: >- PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }default:
description: An unexpected error response.schema:
type: objectproperties:
code:
type: integerformat: int32message:
type: stringdetails:
type: arrayitems:
type: objectproperties:
"@type":
type: stringadditionalProperties: {}parameters:
- name: pagination.keydescription: |- key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.in: queryrequired: falsetype: stringformat: byte
- name: pagination.offsetdescription: >- offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.in: queryrequired: falsetype: stringformat: uint64
- name: pagination.limitdescription: >- limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.in: queryrequired: falsetype: stringformat: uint64
- name: pagination.count_totaldescription: >- count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.in: queryrequired: falsetype: boolean
- name: pagination.reversedescription: >- reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43in: queryrequired: falsetype: booleantags:
- Query
Describe the Bug
The golang generated code has a header that only returns an
error
like so:func (c *Client) PocketGatewayGatewayAll(ctx context.Context, request *poktroll.PocketGatewayGatewayAllRequest) error {
even though the endpoint contains an array like so:What is the source of the issue?
Information to Reproduce
CLI Version
Generator Config
Actual OpenAPI
Golang Generated Code
The text was updated successfully, but these errors were encountered: