Skip to content

When the client cannot unmarshal an error response, the response is lost #428

Open
@taylor-sutton

Description

@taylor-sutton

Example generated code:

var output models.BadRequest
if err := json.NewDecoder(resp.Body).Decode(&output); err != nil {
return nil, "", err
}

This is is perhaps a bit tricky to handle better if we want to continue with allowing the response body to be streamed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggo-clientrelating to the generated Go client

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions