Skip to content

Commit

Permalink
fix(specs): consequence is required when saving rules (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4146

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 3d30ba3 commit 7158ced
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/algolia/models/search/rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def initialize(attributes = {})

if attributes.key?(:consequence)
self.consequence = attributes[:consequence]
else
self.consequence = nil
end

if attributes.key?(:description)
Expand Down

0 comments on commit 7158ced

Please sign in to comment.