Closed
Description
When defining parameters in separate requires
, the validation errors include errors for all defined params. For example the following returns one is missing, two is missing
params do
requires :one, type: Integer
requires :two, type: Integer
end
In contrast, the following usage of a single requires
for multiple params only returns one is missing
.
params do
requires :one, :two, type: Integer
end
I've tracked down where the validation is stopped to this line. Removing it results in both above examples returning one is missing, two is missing
.
Is this something we would want or is the above behavior expected?