Skip to content

Commit

Permalink
fix(specs): update search api specs [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3760

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
  • Loading branch information
algolia-bot and Fluf22 committed Sep 16, 2024
1 parent 324b163 commit 8523c24
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 24 deletions.
3 changes: 1 addition & 2 deletions lib/algolia/models/recommend/highlight_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ class << self
# List of class defined in oneOf (OpenAPI v3)
def openapi_one_of
[
:"Array<HighlightResultOption>",
:"Array<HighlightResult>",
:"Hash<String, HighlightResult>",
:"Hash<String, HighlightResultOption>",
:"HighlightResultOption"
]
end
Expand Down
8 changes: 0 additions & 8 deletions lib/algolia/models/recommend/recommendations_results.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,26 +316,18 @@ def initialize(attributes = {})

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

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

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

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

if attributes.key?(:hits)
Expand Down
3 changes: 1 addition & 2 deletions lib/algolia/models/recommend/snippet_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ class << self
# List of class defined in oneOf (OpenAPI v3)
def openapi_one_of
[
:"Array<SnippetResultOption>",
:"Array<SnippetResult>",
:"Hash<String, SnippetResult>",
:"Hash<String, SnippetResultOption>",
:"SnippetResultOption"
]
end
Expand Down
3 changes: 1 addition & 2 deletions lib/algolia/models/search/highlight_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ class << self
# List of class defined in oneOf (OpenAPI v3)
def openapi_one_of
[
:"Array<HighlightResultOption>",
:"Array<HighlightResult>",
:"Hash<String, HighlightResult>",
:"Hash<String, HighlightResultOption>",
:"HighlightResultOption"
]
end
Expand Down
8 changes: 0 additions & 8 deletions lib/algolia/models/search/search_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,26 +316,18 @@ def initialize(attributes = {})

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

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

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

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

if attributes.key?(:hits)
Expand Down
3 changes: 1 addition & 2 deletions lib/algolia/models/search/snippet_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ class << self
# List of class defined in oneOf (OpenAPI v3)
def openapi_one_of
[
:"Array<SnippetResultOption>",
:"Array<SnippetResult>",
:"Hash<String, SnippetResult>",
:"Hash<String, SnippetResultOption>",
:"SnippetResultOption"
]
end
Expand Down

0 comments on commit 8523c24

Please sign in to comment.