From 1c43a35ffd1338dbdf4a2c6a11b6c1d09daeb64c Mon Sep 17 00:00:00 2001 From: Fedot-Compot <46230197+Fedot-Compot@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:01:36 +0100 Subject: [PATCH] fix: remove unmarshallable *_nethttp.Response from MarshalJSON fixes #144 --- config/clients/go/template/client/client.mustache | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/clients/go/template/client/client.mustache b/config/clients/go/template/client/client.mustache index 203ce42b..75bac6e6 100644 --- a/config/clients/go/template/client/client.mustache +++ b/config/clients/go/template/client/client.mustache @@ -1376,9 +1376,6 @@ func (o ClientWriteRequestWriteResponse) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} toSerialize["tuple_key"] = o.TupleKey toSerialize["status"] = o.Status - if o.HttpResponse != nil { - toSerialize["http_response"] = o.HttpResponse - } if o.Error != nil { toSerialize["error"] = o.Error } @@ -1396,9 +1393,6 @@ func (o ClientWriteRequestDeleteResponse) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} toSerialize["tuple_key"] = o.TupleKey toSerialize["status"] = o.Status - if o.HttpResponse != nil { - toSerialize["http_response"] = o.HttpResponse - } if o.Error != nil { toSerialize["error"] = o.Error }