Skip to content

JSON response handling incompatible with go-kit transport layer #5

Description

@francescobianco

JSON response handling incompatible with go-kit transport layer

Description
SDK returns raw string instead of structured response, making integration with go-kit harder.

Code snippet

resp, err := apiClient.Request(ctx, "GET", baseURL, "/advance", nil, nil)

var data map[string]interface{}
json.Unmarshal([]byte(resp), &data)

Issue
Extra boilerplate required; expected []byte or structured response.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions