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) {