# File lib/apipie/param_description.rb, line 85 def validate(value) return true if @allow_nil && value.nil? return true if @allow_blank && value.blank? value = normalized_value(value) if (!@allow_nil && value.nil?) || !@validator.valid?(value) error = @validator.error error = ParamError.new(error) unless error.is_a? StandardError raise error end end