From cd0a337347566473f362e3944de8f09a6cb547b0 Mon Sep 17 00:00:00 2001 From: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com> Date: Sun, 28 Jul 2024 01:47:55 +1000 Subject: [PATCH] openapi3filter: remove double call (#993) --- openapi3filter/req_resp_decoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi3filter/req_resp_decoder.go b/openapi3filter/req_resp_decoder.go index 31fce234..e151c9ee 100644 --- a/openapi3filter/req_resp_decoder.go +++ b/openapi3filter/req_resp_decoder.go @@ -324,7 +324,7 @@ func decodeValue(dec valueDecoder, param string, sm *openapi3.SerializationMetho if len(res) == 0 { return nil, b, e } - return dec.DecodeArray(param, sm, schema) + return res, b, e } case schema.Value.Type.Is("object"): decodeFn = func(param string, sm *openapi3.SerializationMethod, schema *openapi3.SchemaRef) (any, bool, error) {