-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination using offset/length is not working #404
Comments
Great! Quite fast turn around. |
Looks like there were 3 fields optional. I reported 2 in the issue and you fixed a different one. I think this change does not totally fix the problem as |
I've forgot to add my changes, so the previous PR was incomplete 🙄. It's fixed in master. I'm releasing a new version |
Executing
Throws this exception
The response from algolia servers does not contain some fields required in the class algolia.SearchResult.
The specification says
page
andhitsPerPage
are not returned when we search using offset/lengthhttps://www.algolia.com/doc/api-reference/api-methods/search/
But SearchResult has them defined as mandatory and the parsing of the response crashes.
https://github.com/algolia/algoliasearch-client-scala/blob/master/src/main/scala/algolia/responses/SearchResult.scala
This can be solved having a one to one mapping with the specification or allowing to provide alternative classes to parse the response or maybe in a totally different way. Personally I do not even need
page
andhitsPerPage
in theSearchResult
class so that offers a third solution to my issue, but I imagine others might rely on them.Please let me know if there is any other input needed.
The text was updated successfully, but these errors were encountered: