From 7158cedab069b8cd3e1beb2b5bb30c015954012f Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 26 Nov 2024 13:14:12 +0000 Subject: [PATCH] fix(specs): `consequence` is required when saving rules (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4146 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- lib/algolia/models/search/rule.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/algolia/models/search/rule.rb b/lib/algolia/models/search/rule.rb index 754e7331..eddf6eb6 100644 --- a/lib/algolia/models/search/rule.rb +++ b/lib/algolia/models/search/rule.rb @@ -94,6 +94,8 @@ def initialize(attributes = {}) if attributes.key?(:consequence) self.consequence = attributes[:consequence] + else + self.consequence = nil end if attributes.key?(:description)