lib/algolia/models/recommend/fallback_params.rb in algolia-3.1.1 vs lib/algolia/models/recommend/fallback_params.rb in algolia-3.2.0
- old
+ new
@@ -811,11 +811,11 @@
if length > 1000
raise ArgumentError, "invalid value for \"length\", must be smaller than or equal to 1000."
end
- if length < 1
- raise ArgumentError, "invalid value for \"length\", must be greater than or equal to 1."
+ if length < 0
+ raise ArgumentError, "invalid value for \"length\", must be greater than or equal to 0."
end
@length = length
end