diff --git a/internal/lokiapi/oas_request_encoders_gen.go b/internal/lokiapi/oas_request_encoders_gen.go index 406e0416..ca3dea28 100644 --- a/internal/lokiapi/oas_request_encoders_gen.go +++ b/internal/lokiapi/oas_request_encoders_gen.go @@ -19,7 +19,7 @@ func encodePushRequest( switch req := req.(type) { case *Push: const contentType = "application/json" - e := jx.GetEncoder() + e := new(jx.Encoder) { req.Encode(e) } diff --git a/internal/lokiapi/oas_response_encoders_gen.go b/internal/lokiapi/oas_response_encoders_gen.go index 1d1d2553..b94248c2 100644 --- a/internal/lokiapi/oas_response_encoders_gen.go +++ b/internal/lokiapi/oas_response_encoders_gen.go @@ -18,7 +18,7 @@ func encodeLabelValuesResponse(response *Values, w http.ResponseWriter, span tra w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -32,7 +32,7 @@ func encodeLabelsResponse(response *Labels, w http.ResponseWriter, span trace.Sp w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -53,7 +53,7 @@ func encodeQueryResponse(response *QueryResponse, w http.ResponseWriter, span tr w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -67,7 +67,7 @@ func encodeQueryRangeResponse(response *QueryResponse, w http.ResponseWriter, sp w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -81,7 +81,7 @@ func encodeSeriesResponse(response *Maps, w http.ResponseWriter, span trace.Span w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -105,7 +105,7 @@ func encodeErrorResponse(response *ErrorStatusCode, w http.ResponseWriter, span span.SetStatus(codes.Ok, st) } - e := jx.GetEncoder() + e := new(jx.Encoder) response.Response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") diff --git a/internal/promapi/oas_response_encoders_gen.go b/internal/promapi/oas_response_encoders_gen.go index 0dcbcf58..54ee23af 100644 --- a/internal/promapi/oas_response_encoders_gen.go +++ b/internal/promapi/oas_response_encoders_gen.go @@ -18,7 +18,7 @@ func encodeGetLabelValuesResponse(response *LabelValuesResponse, w http.Response w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -32,7 +32,7 @@ func encodeGetLabelsResponse(response *LabelsResponse, w http.ResponseWriter, sp w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -46,7 +46,7 @@ func encodeGetMetadataResponse(response *MetadataResponse, w http.ResponseWriter w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -60,7 +60,7 @@ func encodeGetQueryResponse(response *QueryResponse, w http.ResponseWriter, span w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -74,7 +74,7 @@ func encodeGetQueryExemplarsResponse(response *QueryExemplarsResponse, w http.Re w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -88,7 +88,7 @@ func encodeGetQueryRangeResponse(response *QueryResponse, w http.ResponseWriter, w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -102,7 +102,7 @@ func encodeGetRulesResponse(response *RulesResponse, w http.ResponseWriter, span w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -116,7 +116,7 @@ func encodeGetSeriesResponse(response *SeriesResponse, w http.ResponseWriter, sp w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -130,7 +130,7 @@ func encodePostLabelsResponse(response *LabelsResponse, w http.ResponseWriter, s w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -144,7 +144,7 @@ func encodePostQueryResponse(response *QueryResponse, w http.ResponseWriter, spa w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -158,7 +158,7 @@ func encodePostQueryExemplarsResponse(response *QueryExemplarsResponse, w http.R w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -172,7 +172,7 @@ func encodePostQueryRangeResponse(response *QueryResponse, w http.ResponseWriter w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -186,7 +186,7 @@ func encodePostSeriesResponse(response *SeriesResponse, w http.ResponseWriter, s w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -210,7 +210,7 @@ func encodeErrorResponse(response *FailStatusCode, w http.ResponseWriter, span t span.SetStatus(codes.Ok, st) } - e := jx.GetEncoder() + e := new(jx.Encoder) response.Response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") diff --git a/internal/pyroscopeapi/oas_response_encoders_gen.go b/internal/pyroscopeapi/oas_response_encoders_gen.go index 340da318..799e8166 100644 --- a/internal/pyroscopeapi/oas_response_encoders_gen.go +++ b/internal/pyroscopeapi/oas_response_encoders_gen.go @@ -18,7 +18,7 @@ func encodeGetAppsResponse(response []ApplicationMetadata, w http.ResponseWriter w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) e.ArrStart() for _, elem := range response { elem.Encode(e) @@ -43,7 +43,7 @@ func encodeLabelValuesResponse(response LabelValues, w http.ResponseWriter, span w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -57,7 +57,7 @@ func encodeLabelsResponse(response Labels, w http.ResponseWriter, span trace.Spa w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -71,7 +71,7 @@ func encodeRenderResponse(response *FlamebearerProfileV1, w http.ResponseWriter, w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -95,7 +95,7 @@ func encodeErrorResponse(response *ErrorStatusCode, w http.ResponseWriter, span span.SetStatus(codes.Ok, st) } - e := jx.GetEncoder() + e := new(jx.Encoder) response.Response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") diff --git a/internal/sentryapi/oas_response_encoders_gen.go b/internal/sentryapi/oas_response_encoders_gen.go index b6b687fb..2431c635 100644 --- a/internal/sentryapi/oas_response_encoders_gen.go +++ b/internal/sentryapi/oas_response_encoders_gen.go @@ -18,7 +18,7 @@ func encodeDummyResponse(response *Event, w http.ResponseWriter, span trace.Span w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -49,7 +49,7 @@ func encodeErrorResponse(response *ErrorStatusCode, w http.ResponseWriter, span span.SetStatus(codes.Ok, st) } - e := jx.GetEncoder() + e := new(jx.Encoder) response.Response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") diff --git a/internal/tempoapi/oas_response_encoders_gen.go b/internal/tempoapi/oas_response_encoders_gen.go index 0b944fb4..e7e8bc07 100644 --- a/internal/tempoapi/oas_response_encoders_gen.go +++ b/internal/tempoapi/oas_response_encoders_gen.go @@ -32,7 +32,7 @@ func encodeSearchResponse(response *Traces, w http.ResponseWriter, span trace.Sp w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -46,7 +46,7 @@ func encodeSearchTagValuesResponse(response *TagValues, w http.ResponseWriter, s w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -60,7 +60,7 @@ func encodeSearchTagValuesV2Response(response *TagValuesV2, w http.ResponseWrite w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -74,7 +74,7 @@ func encodeSearchTagsResponse(response *TagNames, w http.ResponseWriter, span tr w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -123,7 +123,7 @@ func encodeErrorResponse(response *ErrorStatusCode, w http.ResponseWriter, span span.SetStatus(codes.Ok, st) } - e := jx.GetEncoder() + e := new(jx.Encoder) response.Response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") diff --git a/internal/yqlclient/ytqueryapi/oas_response_encoders_gen.go b/internal/yqlclient/ytqueryapi/oas_response_encoders_gen.go index 16e0f0d3..04006eb2 100644 --- a/internal/yqlclient/ytqueryapi/oas_response_encoders_gen.go +++ b/internal/yqlclient/ytqueryapi/oas_response_encoders_gen.go @@ -19,7 +19,7 @@ func encodeAbortQueryResponse(response *AbortedQuery, w http.ResponseWriter, spa w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -33,7 +33,7 @@ func encodeGetQueryResponse(response *QueryStatus, w http.ResponseWriter, span t w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -59,7 +59,7 @@ func encodeStartQueryResponse(response *StartedQuery, w http.ResponseWriter, spa w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) - e := jx.GetEncoder() + e := new(jx.Encoder) response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write") @@ -83,7 +83,7 @@ func encodeErrorResponse(response *ErrorStatusCode, w http.ResponseWriter, span span.SetStatus(codes.Ok, st) } - e := jx.GetEncoder() + e := new(jx.Encoder) response.Response.Encode(e) if _, err := e.WriteTo(w); err != nil { return errors.Wrap(err, "write")