Closed
Description
params do
optional :some_param, type: Integer, custom_validator: true
end
When :some_param
is not present and a custom validator is set; the custom validator will automatically be called, despite the optional setting. It seems the desired behavior when using optional
would be to only call the custom validator when the param is present.
Metadata
Metadata
Assignees
Labels
No labels