Explicitly stated what parameter caused the error
Previously the error would read, "Parameter cannot be less ... " but this is not helpful as it is too generic and could be from any of the parameters. I added name field to the function validate!(param, options, name) then it is called as validate!(params[name], options, name) inside the def param function. The error message is updated inside the validation function as "The parameter #{name} ... " since name is already supported there.
This would be nice addition. You may also want to update the spec, so that tests don't start failing:
spec/parameter_validations_spec.rb, for example, compares responses to strings like "Parameter is required"
@niekvenlo, good catch. I have updated the specs with the correct responses.