lib/pact_broker/matrix/service.rb in pact_broker-2.82.0 vs lib/pact_broker/matrix/service.rb in pact_broker-2.83.0

- old
+ new

@@ -98,9 +98,13 @@ if options[:environment_name]&.not_blank? && environment_service.find_by_name(options[:environment_name]).nil? error_messages << message("errors.validation.environment_with_name_not_found", name: options[:environment_name]) end + if options[:limit] && options[:limit].to_i < 1 + error_messages << message("errors.validation.invalid_limit") + end + error_messages end # rubocop: enable Metrics/CyclomaticComplexity, Metrics/MethodLength end end