Skip to content

Commit

Permalink
openapi3filter: remove double call (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier authored Jul 27, 2024
1 parent 1a2712f commit cd0a337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi3filter/req_resp_decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cd0a337

Please sign in to comment.