Skip to content

Commit a216f01

Browse files
fix(specs): remove unnecessary required fields (generated)
algolia/api-clients-automation#5959 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Mario-Alexandru Dan <marioalexandrudan@gmail.com>
1 parent 6d8605a commit a216f01

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

lib/algolia/models/search/browse_response.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,10 @@ def initialize(attributes = {})
365365

366366
if attributes.key?(:query)
367367
self.query = attributes[:query]
368-
else
369-
self.query = nil
370368
end
371369

372370
if attributes.key?(:params)
373371
self.params = attributes[:params]
374-
else
375-
self.params = nil
376372
end
377373

378374
if attributes.key?(:cursor)

lib/algolia/models/search/search_response.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,10 @@ def initialize(attributes = {})
348348

349349
if attributes.key?(:query)
350350
self.query = attributes[:query]
351-
else
352-
self.query = nil
353351
end
354352

355353
if attributes.key?(:params)
356354
self.params = attributes[:params]
357-
else
358-
self.params = nil
359355
end
360356

361357
# add extra attribute to additional_properties

0 commit comments

Comments
 (0)